Skip to content

Commit

Permalink
Merge pull request #27 from MarcellPerger1/fix-removes-content
Browse files Browse the repository at this point in the history
fix: Fix it removing content
  • Loading branch information
MarcellPerger1 authored Sep 4, 2023
2 parents 7671009 + e01fd70 commit 266b1b8
Show file tree
Hide file tree
Showing 5 changed files with 5 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.

2 changes: 1 addition & 1 deletion src/adblocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
selector: '[class*="ad"],[id*="ad"]',
func(elem) {
for (const name of [elem.id, ...elem.classList]) {
if(/(?<!lo|re)ad(vertisement)?(thrive)?(content)?(engine|ngin)?(container)?($|[-_,\s])/.test(name)) {
if(/(?<!lo|re|he)ad(vertisement)?s?(thrive)?(content)?(engine|ngin)?(container)?s?($|[-_,\s])/.test(name)) {
return true;
}
}
Expand Down

0 comments on commit 266b1b8

Please sign in to comment.