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

Side by Side Diff: pages/filter-cheatsheet.html

Issue 29767583: Issue 6626 - Document the rewrite filter option (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org/
Patch Set: Fixes Created May 15, 2018, 5:47 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 | pages/filters.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 title=Adblock Plus filters explained 1 title=Adblock Plus filters explained
2 2
3 <head> 3 <head>
4 <style type="text/css"> 4 <style type="text/css">
5 #content 5 #content
6 { 6 {
7 max-width: none; 7 max-width: none;
8 } 8 }
9 9
10 canvas 10 canvas
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 <td colspan="2" style="text-align: center;">{{s99 Domains}}</td> 614 <td colspan="2" style="text-align: center;">{{s99 Domains}}</td>
615 </tr> 615 </tr>
616 <tr> 616 <tr>
617 <td><code>domain=</code></td> 617 <td><code>domain=</code></td>
618 <td>{{s100 Specify a list of domains, separated by bar lines (|), on which a filter should be active. A filter may be prevented from being activated on a do main by preceding the domain name with a tilde (~).}}</td> 618 <td>{{s100 Specify a list of domains, separated by bar lines (|), on which a filter should be active. A filter may be prevented from being activated on a do main by preceding the domain name with a tilde (~).}}</td>
619 </tr> 619 </tr>
620 <tr> 620 <tr>
621 <td><code>third-party</code><br><code>~third-party</code></td> 621 <td><code>third-party</code><br><code>~third-party</code></td>
622 <td>{{s101 Specify whether a filter should be active on third-party or first domains}}</td> 622 <td>{{s101 Specify whether a filter should be active on third-party or first domains}}</td>
623 </tr> 623 </tr>
624 <tr>
625 <td colspan="2" style="text-align: center;">{{mischeader Misc}}</td>
626 </tr>
627 <tr>
628 <td><code>rewrite=</code></td>
629 <td>{{rewritedesc Specify a rewrite rule for the URL to be performed before downloading. If the filter is a regular expression, use <code>$n</code> to inser t submatches into the rewritten URL. See JavaScript own <code>String.prototype.r eplace()</code>.}}</td>
juliandoucette 2018/05/22 13:30:41 Missing fix tags inside code tags.
hub 2018/05/29 19:05:47 Done.
630 </tr>
624 </table> 631 </table>
625 632
626 <p>{{s102 Less frequently used options, including <code><fix>dtd</fix></code>, < code><fix>ping</fix></code>, <code><fix>xbl</fix></code>, <code><fix>xmlhttprequ est</fix></code>, <code><fix>other</fix></code>, <code><fix>collapse</fix></code >, <code><fix>donottrack</fix></code> and <code><fix>match-case</fix></code> are explained in the <a href="https://adblockplus.org/en/filters#options">full docu mentation</a>.}}</p> 633 <p>{{s102 Less frequently used options, including <code><fix>dtd</fix></code>, < code><fix>ping</fix></code>, <code><fix>xbl</fix></code>, <code><fix>xmlhttprequ est</fix></code>, <code><fix>other</fix></code>, <code><fix>collapse</fix></code >, <code><fix>donottrack</fix></code> and <code><fix>match-case</fix></code> are explained in the <a href="https://adblockplus.org/en/filters#options">full docu mentation</a>.}}</p>
627 634
628 <h2 id="elementhiding">{{s103 Element hiding}}</h2> 635 <h2 id="elementhiding">{{s103 Element hiding}}</h2>
629 636
630 <p>{{s104 It is generally recommended that users install the <a href="https://ad dons.mozilla.org/firefox/addon/elemhidehelper/">Element Hiding Helper for Adbloc k Plus</a> to assist them in the generation of element hiding rules.}}</p> 637 <p>{{s104 It is generally recommended that users install the <a href="https://ad dons.mozilla.org/firefox/addon/elemhidehelper/">Element Hiding Helper for Adbloc k Plus</a> to assist them in the generation of element hiding rules.}}</p>
631 638
632 <h3 id="elementdomains">{{s105 Domain selection}}</h3> 639 <h3 id="elementdomains">{{s105 Domain selection}}</h3>
633 640
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 <tr> 861 <tr>
855 <td><code>example.com#?#div &gt; img:-abp-properties(width:*px;height:250px; )</code></td> 862 <td><code>example.com#?#div &gt; img:-abp-properties(width:*px;height:250px; )</code></td>
856 <td>{{ abp-properties-example1 By using a wildcard <code>*</code>, this filt er matches an <code>img</code> whose CSS style properties have a <code>width</co de> specified in pixels and a <code>height</code> of 250 pixels }}</td> 863 <td>{{ abp-properties-example1 By using a wildcard <code>*</code>, this filt er matches an <code>img</code> whose CSS style properties have a <code>width</co de> specified in pixels and a <code>height</code> of 250 pixels }}</td>
857 </tr> 864 </tr>
858 <tr> 865 <tr>
859 <td><code>example.com#?#div &gt; img:-abp-properties(/width: 3[2-8]px;/)</co de></td> 866 <td><code>example.com#?#div &gt; img:-abp-properties(/width: 3[2-8]px;/)</co de></td>
860 <td>{{ abp-properties-example2 By using a regular expression, this filter ma tches an <code>img</code> whose CSS style properties have a <code>width</code> b etween 32 and 38 pixels }}</td> 867 <td>{{ abp-properties-example2 By using a regular expression, this filter ma tches an <code>img</code> whose CSS style properties have a <code>width</code> b etween 32 and 38 pixels }}</td>
861 </tr> 868 </tr>
862 </table> 869 </table>
863 870
OLDNEW
« no previous file with comments | « no previous file | pages/filters.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld