1
0
Fork 0
adblocker-rules/README.md

38 lines
1.7 KiB
Markdown
Raw Normal View History

2019-09-26 04:58:03 +02:00
# contents
How to write filters
--------------------
2020-10-06 18:46:23 +02:00
Howto? [block whitlisted spyware](https://github.com/easylist/easylist/issues/4529)
2019-09-26 04:58:03 +02:00
@DandelionSprout have written this: [](https://github.com/DandelionSprout/adfilt/blob/master/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md#blocking) but a few axamples would be greate
* `$badfilter`: Deactivates a resource-blocking entry, even if it is present in another list.
* `$important`: Makes a resource-blocking entry take precedence over another whitelisting entry.
* `$redirect`: Redirects resources to a neutered version that has been embedded in those extensions. Possible options are listed in
[this file](https://github.com/gorhill/uBlock/blob/master/src/js/redirect-engine.js)
(AdGuard has a [slightly smaller selection](https://github.com/AdguardTeam/AdguardBrowserExtension/blob/master/Extension/lib/filter/rules/scriptlets/redirects.yml)).
* `$empty`: Results in a fake empty page being loaded, instead of an error page.
2020-10-06 17:21:33 +02:00
## Source URI's
How to write filters: <https://help.eyeo.com/en/adblockplus/how-to-write-filters>
2019-10-02 01:43:45 +02:00
2020-08-10 10:11:46 +02:00
[Click here to activate in adBlockPlus](https://subscribe.adblockplus.org/?location=https://spirillen.github.io/ublockorigin-rules/blockrules.txt&title=My%20Privacy%20DNS)
2019-10-02 01:47:50 +02:00
## Webfront
2020-08-10 10:10:54 +02:00
Our HTML front end is <https://spirillen.github.io/ublockorigin-rules/>
2020-10-17 02:35:31 +02:00
### badfilter example
If the original rule was like
```
@@/advertise.js$script,domain=abc.com|xyz.com
```
Then
```
@@/advertise.js$script,badfilter,domain=abc.com
```
is a valid filter, it disables the allowlist only on abc.com.
See the dialog at <https://github.com/spirillen/ublockorigin-rules/commit/c01ba1a5a0d73a89c911ab11d1322631fe3d0540>