Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: pages/filters.html

Issue 29881555: Noissue - Document that special comments now have to be given at the top of the filter list (Closed)
Patch Set: Created Sept. 15, 2018, 5:45 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 26 matching lines...) Expand all
37 37
38 <p>{{s18 Separator character is anything but a letter, a digit, or one of the following: <fix>_ - . %</fix>. The end of the address is also accepted as separa tor. In the following example all separator characters are shown in red:}} http: <b style="color: red;">//</b>example.com<b style="color: red;">:</b>8000<b style ="color: red;">/</b>foo.bar<b style="color: red;">?</b>a<b style="color: red;">= </b>12<b style="color: red;">&amp;</b>b<b style="color: red;">=</b>%D1%82%D0%B5% D1%81%D1%82{{s19 . So this address can be blocked with the filter <code><fix>^ex ample.com^</fix></code> or <code><fix>^%D1%82%D0%B5%D1%81%D1%82^</fix></code> or <code><fix>^foo.bar^</fix></code>.}}</p> 38 <p>{{s18 Separator character is anything but a letter, a digit, or one of the following: <fix>_ - . %</fix>. The end of the address is also accepted as separa tor. In the following example all separator characters are shown in red:}} http: <b style="color: red;">//</b>example.com<b style="color: red;">:</b>8000<b style ="color: red;">/</b>foo.bar<b style="color: red;">?</b>a<b style="color: red;">= </b>12<b style="color: red;">&amp;</b>b<b style="color: red;">=</b>%D1%82%D0%B5% D1%81%D1%82{{s19 . So this address can be blocked with the filter <code><fix>^ex ample.com^</fix></code> or <code><fix>^%D1%82%D0%B5%D1%81%D1%82^</fix></code> or <code><fix>^foo.bar^</fix></code>.}}</p>
39 39
40 <h3 id="comments">{{s20 Comments}}</h3> 40 <h3 id="comments">{{s20 Comments}}</h3>
41 41
42 <p>{{s21 Any rule that starts with an exclamation mark is considered a comment . It will still show up in the filter list but in grey instead of black. Adblock Plus will ignore this rule for actual blocking so it is safe to write there wha tever you want. You can place a comment rule above a real filter to describe wha t it is doing. Or you can put a comment on top of your filter list stating your authorship (most filter list authors do that).}}</p> 42 <p>{{s21 Any rule that starts with an exclamation mark is considered a comment . It will still show up in the filter list but in grey instead of black. Adblock Plus will ignore this rule for actual blocking so it is safe to write there wha tever you want. You can place a comment rule above a real filter to describe wha t it is doing. Or you can put a comment on top of your filter list stating your authorship (most filter list authors do that).}}</p>
43 43
44 <h4 id="special-comments">{{s22 Special comments}}</h4> 44 <h4 id="special-comments">{{s22 Special comments}}</h4>
45 45
46 <p> 46 <p>
47 {{s23 Special comments will only have an effect in downloaded filter lists, no t in custom filters.}} {{s24 They can set a number 47 {{s23 Special comments will only have an effect in downloaded filter lists, no t in custom filters.}}
48 of parameters for the filter list:}} 48 {{special-comments-position Special comments must be given at the top of the f ilter list right below the header. }}
49 {{s24 They can set a number of parameters for the filter list:}}
49 </p> 50 </p>
50 51
51 <ul> 52 <ul>
52 <li> 53 <li>
53 <p> 54 <p>
54 <code>! Homepage: http://example.com/</code> 55 <code>! Homepage: http://example.com/</code>
55 </p> 56 </p>
56 <p> 57 <p>
57 {{s25 This comment determines which webpage should be linked as filter lis t homepage.}} 58 {{s25 This comment determines which webpage should be linked as filter lis t homepage.}}
58 </p> 59 </p>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 {{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:}} 279 {{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:}}
279 </p> 280 </p>
280 281
281 <pre> 282 <pre>
282 /index.html?q=foo\0www.example.com\0Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv :30.0) Gecko/20100101 Firefox/30.0 283 /index.html?q=foo\0www.example.com\0Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv :30.0) Gecko/20100101 Firefox/30.0
283 </pre> 284 </pre>
284 285
285 <p> 286 <p>
286 {{s111 Finally, generate the signature for this string by using the signature algorithm SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE (default when using OpenSSL).}} 287 {{s111 Finally, generate the signature for this string by using the signature algorithm SEC_OID_ISO_SHA_WITH_RSA_SIGNATURE (default when using OpenSSL).}}
287 </p> 288 </p>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld