// (function lockUwPpcStorage() { // const originalSetItem = localStorage.setItem; // localStorage.setItem = function(key, value) { // if (key === 'uw-ppc') { // try { // const current = JSON.parse(localStorage.getItem('uw-ppc') || "{}"); // const incoming = JSON.parse(value || "{}"); // const hasTracking = ['utm_source', 'gclid', 'fbclid', 'aff_click_id', 'fbc', 'wbraid', 'gbraid'].some(k => k in current); // const isWorse = Object.keys(incoming).length < Object.keys(current).length; // if (hasTracking && isWorse) { // console.warn("Blocked uw-ppc overwrite:", incoming); // return; // } // } catch (e) { // // if not valid JSON // } // } // return originalSetItem.apply(this, arguments); // }; // })();