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

Unified 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: Addressed Julian's comments. Added a note about the restriction on content for rewriting. Created May 29, 2018, 7:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pages/filters.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pages/filter-cheatsheet.html
===================================================================
--- a/pages/filter-cheatsheet.html
+++ b/pages/filter-cheatsheet.html
@@ -616,16 +616,23 @@
<tr>
<td><code>domain=</code></td>
<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 domain by preceding the domain name with a tilde (~).}}</td>
</tr>
<tr>
<td><code>third-party</code><br><code>~third-party</code></td>
<td>{{s101 Specify whether a filter should be active on third-party or first domains}}</td>
</tr>
+ <tr>
+ <td colspan="2" style="text-align: center;">{{mischeader Misc}}</td>
+ </tr>
+ <tr>
+ <td><code>rewrite=</code></td>
+ <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></code> to insert submatches into the rewritten URL. See JavaScript own <code><fix>String.prototype.replace()</fix></code>.}}</td>
+ </tr>
</table>
<p>{{s102 Less frequently used options, including <code><fix>dtd</fix></code>, <code><fix>ping</fix></code>, <code><fix>xbl</fix></code>, <code><fix>xmlhttprequest</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 documentation</a>.}}</p>
<h2 id="elementhiding">{{s103 Element hiding}}</h2>
<p>{{s104 It is generally recommended that users install the <a href="https://addons.mozilla.org/firefox/addon/elemhidehelper/">Element Hiding Helper for Adblock Plus</a> to assist them in the generation of element hiding rules.}}</p>
« 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