mirror of
https://github.com/AdguardTeam/AdguardFilters.git
synced 2026-08-29 12:14:41 +00:00
Added more files for common sections (#144483)
This commit is contained in:
@@ -1 +1 @@
|
||||
! ### DUMMY. Must be replaced by the actual Russian filter ###
|
||||
! ### DUMMY. Must be replaced by the actual Russian filter ###
|
||||
|
||||
8
CyrillicFilters/common-sections/adservers_firstparty.txt
Normal file
8
CyrillicFilters/common-sections/adservers_firstparty.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
!
|
||||
! This section contains the list of advertising networks domains, which are hosted on non advertising sites as subdomains.
|
||||
! Note, that we only put rules that block full subdomains here and not URL parts (there's `general_url.txt` for that).
|
||||
!
|
||||
! Good: ||ad.doubleclick.net^
|
||||
! Bad: /banner.jpg (should be in general_url.txt)
|
||||
! Bad: ||legitwebsite.com^$third-party (should be in adservers.txt)
|
||||
!
|
||||
6
CyrillicFilters/common-sections/allowlist.txt
Normal file
6
CyrillicFilters/common-sections/allowlist.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
!
|
||||
! This section contains the list of rules that fix incorrect blocking. Rules must be domain-specific.
|
||||
!
|
||||
! Good: example.org#@#.ad
|
||||
! Bad: @@||example.org^$stealth (should be in AdGuard Base - allowlist_stealth.txt)
|
||||
!
|
||||
9
CyrillicFilters/common-sections/antiadblock.txt
Normal file
9
CyrillicFilters/common-sections/antiadblock.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
!
|
||||
! First of all, this section has common rules that prevent most known ad block detections. In that case domain should be added to the common rules.
|
||||
! The section contains the list of the rules are against all kinds of ads reinjection or ad-blocking circumvention scripts. If such a script does not cripple the website, we add rules to the Annoyances filter.
|
||||
! Rules should generally be domain-specific. In some exceptional cases, it's allowed to add generic ones, but this should be approved by most of the maintainers.
|
||||
!
|
||||
! Good: ||example.org/adblock/detect.js
|
||||
! Good: @@/adblocker/detect.js$domain=example.org
|
||||
! Bad: ||ad.doubleclick.net^ (should be in adservers.txt)
|
||||
!
|
||||
@@ -1,8 +1 @@
|
||||
!
|
||||
! This section contains generic element hiding rules that block ads.
|
||||
!
|
||||
! Good: ##.adv
|
||||
! Bad: example.org##.adv (should be in specific.txt)
|
||||
!
|
||||
!
|
||||
|
||||
! ### DUMMY. Must be replaced by the actual Russian filter ###
|
||||
|
||||
20
CyrillicFilters/common-sections/general_extensions.txt
Normal file
20
CyrillicFilters/common-sections/general_extensions.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
!
|
||||
! This section contains the list of ad blocking rules that fall under "advanced" category.
|
||||
! By advanced we mean the following rule types: CSS, scriptlets, HTML filtering (`$$` marker), JS.
|
||||
!
|
||||
! Good: example.org#$##rek { display: none !important; }; example.org#%#//scriptlet('set-cookie', 'ad', '0'); example.org#%#document.cookie = "ad =0"; ; example.org$$script[tag-content="ad"][max-length="3000"].
|
||||
! Bad: example.org###rek (should be in specific.txt)
|
||||
!
|
||||
!-------------------
|
||||
!-------JS----------
|
||||
!-------------------
|
||||
!
|
||||
!-------------------
|
||||
!-------CSS---------
|
||||
!-------------------
|
||||
!
|
||||
!
|
||||
!-------------------
|
||||
!-------HTML--------
|
||||
!-------------------
|
||||
!
|
||||
@@ -1,6 +1 @@
|
||||
!
|
||||
! This section contains the list of generic blocking rules.
|
||||
!
|
||||
! Good: .org/ads/
|
||||
! Bad: .org/ads/$domain=example.org (for instance, should be in speficic.txt)
|
||||
!
|
||||
! ### DUMMY. Must be replaced by the actual Russian filter ###
|
||||
|
||||
6
CyrillicFilters/common-sections/specific.txt
Normal file
6
CyrillicFilters/common-sections/specific.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
!
|
||||
! This section contains the list of domain-specific rules that block ads.
|
||||
!
|
||||
! Good: example.org###rek; ||example.com/ads/
|
||||
! Bad: example.org#$##rek { display: none !important; } (for instance, should be in general_extensions.txt)
|
||||
!
|
||||
Reference in New Issue
Block a user