Skip to content

Commit

Permalink
Block ezoic ads
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcellPerger1 committed Mar 19, 2024
1 parent dd119d9 commit 58b3fae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/adblocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,15 @@
}
})({
cls: ['adsbygoogle', 'mod_ad_container', 'brn-ads-box','gpt-ad','ad-box','top-ads-container', 'adthrive-ad'],
selector: ['[aria-label="advertisement"]', '[class*="-ad "], [class*="-ad-"], [class$="-ad"], [class^="ad-"], [class^="adthrive"]', ':is(div,iframe)[id^="google_ads_iframe_"]', '#aipPrerollContainer'],
selector: [
'[aria-label="advertisement"]',
'[class*="-ad "],[class*="-ad-"],[class$="-ad"],[class^="ad-"],[class^="adthrive"]',
':is(div,iframe)[id^="google_ads_iframe_"]',
'#aipPrerollContainer',
// This should really select the top one but we let the 'only contains ads' functionality handle it.
// Yes I know its lazy, but it is more elegant than writing a whole new func filter (and more performant)
'span[data-ez-ph-id] span[data-ez-ph-owner-id] span.ezoicwhat',
],
/** @type {{selector: string?, func: (elem: Element) => any}[]} */
func: [
{
Expand Down

0 comments on commit 58b3fae

Please sign in to comment.