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> — connections opened via <a href="https://developer.mozilla.org/docs/Web/API/RTCPeerConnection"><code><fix>R TCPeerConnection</fix></code> instances</a> to ICE servers (Adblock Plus for Chr ome and Opera 1.13.3 or higher required, Adblock Plus for Firefox and Safari not yet supported)}}</li> | 155 <li>{{webrtc <code><fix>webrtc</fix></code> — connections opened via <a href="https://developer.mozilla.org/docs/Web/API/RTCPeerConnection"><code><fix>R TCPeerConnection</fix></code> instances</a> to ICE servers (Adblock Plus 1.13.3 for Chrome and Opera, 3.0 for Firefox, or higher required)}}</li> |
kzar
2018/04/17 15:15:28
Nit: I think the last comma could be removed "...F
Sebastian Noack
2018/04/17 15:18:49
Wouldn't it read like "exactly 1.13.3 for Chrome/O
kzar
2018/04/17 15:24:06
Well if this was code I would have added the comma
Sebastian Noack
2018/04/17 16:44:05
Well, code is parsed by computers, language is par
| |
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>{{s65 <code><fix>document</fix></code> — the page itself (only <a hr ef="#whitelist">exception rules</a> can be applied to the page)}}</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>{{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> |
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>{{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> |
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>{{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> |
160 <li>{{popup <code><fix>popup</fix></code> — pages opened in a new tab or window}}</li> | 160 <li>{{popup <code><fix>popup</fix></code> — pages opened in a new tab or window}}</li> |
161 <li>{{s67 <code><fix>other</fix></code> — types of requests not covered in the list above}}</li> | 161 <li>{{s67 <code><fix>other</fix></code> — types of requests not covered in the list above}}</li> |
162 </ul> | 162 </ul> |
163 {{deprecated-options The type options <code><fix>background</fix></code>, | 163 {{deprecated-options The type options <code><fix>background</fix></code>, |
164 <code><fix>xbl</fix></code> and <code><fix>dtd</fix></code> are outdated | 164 <code><fix>xbl</fix></code> and <code><fix>dtd</fix></code> are outdated |
165 and should no longer be used.}} | 165 and should no longer be used.}} |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 {{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:}} | 299 {{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:}} |
300 </p> | 300 </p> |
301 | 301 |
302 <pre> | 302 <pre> |
303 /index.html?q=foo\0www.example.com\0Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv :30.0) Gecko/20100101 Firefox/30.0 | 303 /index.html?q=foo\0www.example.com\0Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv :30.0) Gecko/20100101 Firefox/30.0 |
304 </pre> | 304 </pre> |
305 | 305 |
306 <p> | 306 <p> |
307 {{s111 Finally, generate the signature for this string by using the signature algorithm SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE (default when using OpenSSL).}} | 307 {{s111 Finally, generate the signature for this string by using the signature algorithm SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE (default when using OpenSSL).}} |
308 </p> | 308 </p> |
OLD | NEW |