Support $generichide adblock rules #8803
Labels
feature/shields/adblock
Blocking ads & trackers with Shields
OS/Desktop
QA Pass-Linux
QA Pass-macOS
QA Pass-Win64
QA/Test-Plan-Specified
QA/Yes
release-notes/include
uBO-parity
Milestone
Description
We should support $generichide and $ghide (ubo style) in Brave, bring us inline with uBO, ABP, Adguard and other adblockers. Generichide filter is used to counter sites against Anti-adblock measures for checking generic css divs.
Popularity (as of 22/03/2020)
uBO Filters.txt (1535 generichide/ghide lines):
grep \$ghide filters.txt | wc -l
1535
Easylist (295 $generichide lines):
grep -r generichide * | wc -l
295
How its implemented:
Sample domain filter:
@@||domain.com^$generchide
Cosmetics wouldn't apply to domain.com:
##.adblock
###adbanner
###ad_text:not(textarea)
###tads + div + .c
Cosmetic would apply:
domain.com##.topBarAd
domain.com###sidebar-ad
domain.com##a[href^="https://dltags.com/"]
Original Implementation:
https://adblockplus.org/development-builds/new-filter-options-generichide-and-genericblock
Steps to Reproduce
https://www.forbes.com
@@||forbes.com^$generichide
to hide the generic filters the site is using.The text was updated successfully, but these errors were encountered: