// Target the specific class names used by the big media conglomerates const adClasses = ['ad-container', 'sponsored-content', 'modal-overlay', 'paywall']; const detectors = ['adblock-detector', 'ad-notice'];
// Also clean up on page load window.addEventListener('load', () => blockAdScripts(); blockAdIframes(); hideAdElements(); ); adblock script tampermonkey full
Click the Install button on the Tampermonkey dashboard page. // Target the specific class names used by
const adSelectors = [ "[id*='ad-']", "[id*='_ad_']", "[id*='-ad-']", "[class*='ad-']", "[class*='_ad_']", "[class*='-ad-']", "[class*='AdContainer']", ".advertisement", ".ad-banner", ".ad-box", ".ad-slot", ".ad-wrapper", ".adsbygoogle", ".adsense", ".google-ad", ".banner-ad", ".sponsored", "[aria-label*='advertisement']", "[aria-label*='Ad']", "[data-ad]", "[data-ad-client]", "[data-google-query-id]", ".advert", ".ad-text", ".promoted", ".recommended-ads", ".native-ad", ".ad-display", "#top-ad", "#bottom-ad", "#sidebar-ad", "#ad-container", "#ad-banner", "iframe[src*='doubleclick']", "iframe[src*='googlead']", "div[data-adspot]" ]; const detectors = ['adblock-detector'