Skip to content

Commit

Permalink
Merge pull request #32 from MarcellPerger1/fix-playclassic-games
Browse files Browse the repository at this point in the history
fix: Fix adblocking for playclassic.games
  • Loading branch information
MarcellPerger1 authored Nov 28, 2023
2 parents df3fe0c + ad17280 commit 510cb7d
Show file tree
Hide file tree
Showing 5 changed files with 16 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.

13 changes: 12 additions & 1 deletion src/adblocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,18 @@
}
}
}
}
},
{
selector: 'div#preroll',
func(elem) {
// match div#preroll that has child div#aipBranding
for (let c of elem.children) {
if(c.matches("div#aipBranding")) {
return true;
}
}
}
},
],
ignore: {
selector: ["body", ".ad-layout", "#game-holder.game-holder-with-ad"],
Expand Down

0 comments on commit 510cb7d

Please sign in to comment.