Skip to content

Commit

Permalink
Merge pull request #36 from MarcellPerger1/block-ezoic-ads-full
Browse files Browse the repository at this point in the history
Block ezoic ads
  • Loading branch information
MarcellPerger1 authored Mar 19, 2024
2 parents dd119d9 + e388059 commit 296e802
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/debug/adblocker.debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/debug/bookmarklet.debug.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/release/adblocker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/release/bookmarklet.min.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 296e802

Please sign in to comment.