Left: | ||
Right: |
OLD | NEW |
---|---|
1 title=Writing Adblock Plus filters | 1 title=Writing Adblock Plus filters |
2 | 2 |
3 | 3 |
4 <p>{{s1 Current Adblock Plus versions allow you to "tweak" your filters in many different ways. This document explains the choices that you have and how they ca n be used.}}</p> | 4 <p>{{s1 Current Adblock Plus versions allow you to "tweak" your filters in many different ways. This document explains the choices that you have and how they ca n be used.}}</p> |
5 | 5 |
6 <p>{{s2 <em>Disclaimer</em>: All filter examples given here are really only ex amples and are not meant to be used.}}</p> | 6 <p>{{s2 <em>Disclaimer</em>: All filter examples given here are really only ex amples and are not meant to be used.}}</p> |
7 | 7 |
8 <h2 id="introduction">{{s3 Introduction to Adblock Plus filters}}</h2> | 8 <h2 id="introduction">{{s3 Introduction to Adblock Plus filters}}</h2> |
9 | 9 |
10 <p>{{s4 The options described in this section should be enough for users who h ave to create a filter occasionally.}}</p> | 10 <p>{{s4 The options described in this section should be enough for users who h ave to create a filter occasionally.}}</p> |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 <ul> | 145 <ul> |
146 <li>{{s57 <code><fix>script</fix></code> — external scripts loaded via H TML script tag}}</li> | 146 <li>{{s57 <code><fix>script</fix></code> — external scripts loaded via H TML script tag}}</li> |
147 <li>{{s58 <code><fix>image</fix></code> — regular images, typically load ed via HTML img tag}}</li> | 147 <li>{{s58 <code><fix>image</fix></code> — regular images, typically load ed via HTML img tag}}</li> |
148 <li>{{s59 <code><fix>stylesheet</fix></code> — external CSS stylesheet f iles}}</li> | 148 <li>{{s59 <code><fix>stylesheet</fix></code> — external CSS stylesheet f iles}}</li> |
149 <li>{{s60 <code><fix>object</fix></code> — content handled by browser pl ugins, e.g. Flash or Java}}</li> | 149 <li>{{s60 <code><fix>object</fix></code> — content handled by browser pl ugins, e.g. Flash or Java}}</li> |
150 <li>{{xmlhttprequest <code><fix>xmlhttprequest</fix></code> — requests s tarted using the <a href="https://xhr.spec.whatwg.org/"><code><fix>XMLHttpReques t</fix></code> object</a> or <a href="https://fetch.spec.whatwg.org/"><code><fix >fetch()</fix></code> API</a>}}</li> | 150 <li>{{xmlhttprequest <code><fix>xmlhttprequest</fix></code> — requests s tarted using the <a href="https://xhr.spec.whatwg.org/"><code><fix>XMLHttpReques t</fix></code> object</a> or <a href="https://fetch.spec.whatwg.org/"><code><fix >fetch()</fix></code> API</a>}}</li> |
151 <li>{{s63 <code><fix>object-subrequest</fix></code> — requests started b y plugins like Flash}}</li> | 151 <li>{{s63 <code><fix>object-subrequest</fix></code> — requests started b y plugins like Flash}}</li> |
152 <li>{{s64 <code><fix>subdocument</fix></code> — embedded pages, usually included via HTML frames}}</li> | 152 <li>{{s64 <code><fix>subdocument</fix></code> — embedded pages, usually included via HTML frames}}</li> |
153 <li>{{ping <code><fix>ping</fix></code> — requests started by <a href="h ttps://developer.mozilla.org/docs/Web/HTML/Element/a#attr-ping"><code><fix><a ping></fix></code></a> or <a href="https://developer.mozilla.org/docs/Web/AP I/Navigator/sendBeacon"><code><fix>navigator.sendBeacon()</fix></code></a> (Adbl ock Plus 2.7.1 or higher required)}}</li> | 153 <li>{{ping <code><fix>ping</fix></code> — requests started by <a href="h ttps://developer.mozilla.org/docs/Web/HTML/Element/a#attr-ping"><code><fix><a ping></fix></code></a> or <a href="https://developer.mozilla.org/docs/Web/AP I/Navigator/sendBeacon"><code><fix>navigator.sendBeacon()</fix></code></a> (Adbl ock Plus 2.7.1 or higher required)}}</li> |
154 <li>{{websocket <code><fix>websocket</fix></code> — requests initiated v ia <a href="https://developer.mozilla.org/docs/Web/API/WebSocket"><code><fix>Web Socket</fix></code> object</a> (Adblock Plus 2.8 or higher required)}}</li> | 154 <li>{{websocket <code><fix>websocket</fix></code> — requests initiated v ia <a href="https://developer.mozilla.org/docs/Web/API/WebSocket"><code><fix>Web Socket</fix></code> object</a> (Adblock Plus 2.8 or higher required)}}</li> |
155 <li>{{webrtc <code><fix>webrtc</fix></code> — requests initiated via <a href="https://developer.mozilla.org/docs/Web/API/RTCPeerConnection"><code><fix>R TCPeerConnection</fix></code> object</a> (Adblock Plus for Chrome and Opera 1.13 .3 or higher required, Adblock Plus for Firefox and Safari not yet supported)}}< /li> | |
Sebastian Noack
2017/05/22 13:59:37
While it's probably not worth to add support for t
kzar
2017/05/22 14:06:41
I see what you mean, but equally I'm trying to kee
Sebastian Noack
2017/05/22 14:23:07
Why not using the correct terminology and talk abo
kzar
2017/05/22 14:26:44
Do you have a suggestion of how we can do that wit
Sebastian Noack
2017/05/22 14:55:32
I don't have a particular suggestion, but how is m
Manish Jethani
2017/05/29 13:38:19
Safari does not support RTCPeerConnection. I just
Sebastian Noack
2017/05/29 13:47:06
So I guess let's map both, $websocket and $webrtc
| |
155 <li>{{s65 <code><fix>document</fix></code> — the page itself (only <a hr ef="#whitelist">exception rules</a> can be applied to the page)}}</li> | 156 <li>{{s65 <code><fix>document</fix></code> — the page itself (only <a hr ef="#whitelist">exception rules</a> can be applied to the page)}}</li> |
156 <li>{{s66 <code><fix>elemhide</fix></code> — for exception rules only, s imilar to <code><fix>document</fix></code> but only disables <a href="#elemhide" >element hiding rules</a> on the page rather than all filter rules (Adblock Plus 1.2 or higher required)}}</li> | 157 <li>{{s66 <code><fix>elemhide</fix></code> — for exception rules only, s imilar to <code><fix>document</fix></code> but only disables <a href="#elemhide" >element hiding rules</a> on the page rather than all filter rules (Adblock Plus 1.2 or higher required)}}</li> |
157 <li>{{generichide <code><fix>generichide</fix></code> — for exception ru les only, similar to <code><fix>elemhide</fix></code> but only disables <a href= "#generic-specific">generic</a> element hiding rules on the page (Adblock Plus 2 .6.12 or higher required)}}</li> | 158 <li>{{generichide <code><fix>generichide</fix></code> — for exception ru les only, similar to <code><fix>elemhide</fix></code> but only disables <a href= "#generic-specific">generic</a> element hiding rules on the page (Adblock Plus 2 .6.12 or higher required)}}</li> |
158 <li>{{genericblock <code><fix>genericblock</fix></code> — for exception rules only, just like <code><fix>generichide</fix></code> but disables <a href=" #generic-specific">generic</a> blocking rules (Adblock Plus 2.6.12 or higher req uired)}}</li> | 159 <li>{{genericblock <code><fix>genericblock</fix></code> — for exception rules only, just like <code><fix>generichide</fix></code> but disables <a href=" #generic-specific">generic</a> blocking rules (Adblock Plus 2.6.12 or higher req uired)}}</li> |
159 <li>{{s67 <code><fix>other</fix></code> — types of requests not covered in the list above}}</li> | 160 <li>{{s67 <code><fix>other</fix></code> — types of requests not covered in the list above}}</li> |
160 </ul> | 161 </ul> |
161 {{deprecated-options The type options <code><fix>background</fix></code>, | 162 {{deprecated-options The type options <code><fix>background</fix></code>, |
162 <code><fix>xbl</fix></code> and <code><fix>dtd</fix></code> are outdated | 163 <code><fix>xbl</fix></code> and <code><fix>dtd</fix></code> are outdated |
163 and should no longer be used.}} | 164 and should no longer be used.}} |
164 </li> | 165 </li> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
270 {{s110 The data used for creating the signature is a concatenated list of requ est variables (namely URI, host and user agent) separated by the <code><fix>NUL< /fix></code> character "\0". For example:}} | 271 {{s110 The data used for creating the signature is a concatenated list of requ est variables (namely URI, host and user agent) separated by the <code><fix>NUL< /fix></code> character "\0". For example:}} |
271 </p> | 272 </p> |
272 | 273 |
273 <pre> | 274 <pre> |
274 /index.html?q=foo\0www.example.com\0Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv :30.0) Gecko/20100101 Firefox/30.0 | 275 /index.html?q=foo\0www.example.com\0Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv :30.0) Gecko/20100101 Firefox/30.0 |
275 </pre> | 276 </pre> |
276 | 277 |
277 <p> | 278 <p> |
278 {{s111 Finally, generate the signature for this string by using the signature algorithm SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE (default when using OpenSSL).}} | 279 {{s111 Finally, generate the signature for this string by using the signature algorithm SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE (default when using OpenSSL).}} |
279 </p> | 280 </p> |
OLD | NEW |