1
0
Fork 0
adblocker-rules/README.md

62 lines
2.3 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
2021-06-23 04:49:42 +02:00
@DandelionSprout have written this: [](https://github.com/DandelionSprout/adfilt/blob/master/Wiki/SyntaxMeaningsThatAreActuallyHumanReadable.md#blocking)
but a few examples 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.
2021-06-16 15:13:08 +02:00
* `$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
2021-10-12 16:06:31 +02:00
[Click here to activate in uBlock Origin](abp:subscribe?location=https://my-external-stuff.github.io/ublockorigin-rules/blockrules.txt&title=Spirillens%20%E2%80%93%20Adblock%20Rules)
2019-10-02 01:47:50 +02:00
## Webfront
Our HTML front end is <https://my-external-stuff.github.io/ublockorigin-rules/>
2020-10-17 02:35:31 +02:00
### badfilter example
If the original rule was like
2020-10-17 02:35:31 +02:00
```
@@/advertise.js$script,domain=abc.com|xyz.com
```
2020-10-17 02:35:31 +02:00
Then
2020-10-17 02:35:31 +02:00
```
@@/advertise.js$script,domain=abc.com,badfilter
2020-10-17 02:35:31 +02:00
```
2020-10-17 02:35:31 +02:00
is a valid filter, it disables the allowlist only on abc.com.
See the dialog at <https://github.com/My-External-Stuff/ublockorigin-rules/commit/c01ba1a5a0d73a89c911ab11d1322631fe3d0540>
2021-02-16 15:07:35 +01:00
## External Sources
@Yuki2718 [/adblock](https://github.com/Yuki2718/adblock)
2021-06-23 04:49:42 +02:00
2021-02-16 15:07:35 +01:00
@yourduskquibbles [/webannoyances](https://github.com/yourduskquibbles/webannoyances)
2021-06-23 04:49:42 +02:00
@ryanbr [fanboy-adblock](https://github.com/ryanbr/fanboy-adblock)
@pgl [yoyo.org](https://pgl.yoyo.org/)
@EasyList [easylist.to](https://easylist.to)
And everyone else I've forgotten to mention here.
Have a look in the [source list](/ublockorigin-rules.template)
2021-02-16 15:07:35 +01:00
## Tanks
2021-06-23 04:49:42 +02:00
Thanks to @Yuki2718, @THEtomaso, @krystian3w and everyone else who is spreading
the knowledge of how rules should be made :smiley: