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

Delta Between Two Patch Sets: pages/filter-cheatsheet.html

Issue 29767583: Issue 6626 - Document the rewrite filter option (Closed) Base URL: https://hg.adblockplus.org/web.adblockplus.org/
Left Patch Set: Fixes Created May 15, 2018, 5:47 p.m.
Right Patch Set: Addressed Julian's comments. Added a note about the restriction on content for rewriting. Created May 29, 2018, 7:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | pages/filters.html » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
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> 624 <tr>
625 <td colspan="2" style="text-align: center;">{{mischeader Misc}}</td> 625 <td colspan="2" style="text-align: center;">{{mischeader Misc}}</td>
626 </tr> 626 </tr>
627 <tr> 627 <tr>
628 <td><code>rewrite=</code></td> 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> 629 <td>{{rewritedesc Specify a rewrite rule for the URL to be performed before downloading. If the filter is a regular expression, use <code><fix>$n</fix></cod e> to insert submatches into the rewritten URL. See JavaScript own <code><fix>St ring.prototype.replace()</fix></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> 630 </tr>
631 </table> 631 </table>
632 632
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> 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>
634 634
635 <h2 id="elementhiding">{{s103 Element hiding}}</h2> 635 <h2 id="elementhiding">{{s103 Element hiding}}</h2>
636 636
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> 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>
638 638
639 <h3 id="elementdomains">{{s105 Domain selection}}</h3> 639 <h3 id="elementdomains">{{s105 Domain selection}}</h3>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 <tr> 861 <tr>
862 <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>
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> 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>
864 </tr> 864 </tr>
865 <tr> 865 <tr>
866 <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>
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> 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>
868 </tr> 868 </tr>
869 </table> 869 </table>
870 870
LEFTRIGHT
« no previous file | pages/filters.html » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

Powered by Google App Engine
This is Rietveld