Added more files for common sections (#144483)

This commit is contained in:
Alex
2023-03-03 15:35:25 +02:00
committed by GitHub
parent 6fac50d4dc
commit 5414ed22dc
8 changed files with 52 additions and 15 deletions

View File

@@ -1 +1 @@
! ### DUMMY. Must be replaced by the actual Russian filter ###
! ### DUMMY. Must be replaced by the actual Russian filter ###

View 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)
!

View 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)
!

View 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)
!

View File

@@ -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 ###

View 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--------
!-------------------
!

View File

@@ -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 ###

View 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)
!