aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Egilsson <einar@einaregilsson.com>2016-02-22 10:26:35 +0000
committerEinar Egilsson <einar@einaregilsson.com>2016-02-22 10:26:35 +0000
commitb13e128ca687bc0c5fb0b32c7afb1000d6212a1e (patch)
treeac9ab017eccb94738de97d8a5458bda63ba81066
parent4cd86af900055192fabb0d08aa90cc0c067a4fa5 (diff)
Update help file and version number
-rw-r--r--help.html45
-rw-r--r--manifest.json2
-rw-r--r--package.json2
3 files changed, 32 insertions, 17 deletions
diff --git a/help.html b/help.html
index f96375b..760aa50 100644
--- a/help.html
+++ b/help.html
@@ -20,8 +20,14 @@
<li><a href="#excludepattern">Exclude pattern</a></li>
<li><a href="#redirectto">Redirect to</a></li>
<li><a href="#patterntype">Pattern type</a></li>
- <li><a href="#unescapematches">Unescape matches</a></li>
- <li><a href="#escapematches">Escape matches</a></li>
+ <li><a href="#processmatches">Process Matches</a>
+ <ol>
+ <li><a href="#noprocessing">No Processing</a></li>
+ <li><a href="#urldecodematches">URL decode matches</a></li>
+ <li><a href="#urlencodematches">URL encode matches</a></li>
+ <li><a href="#base64decodematches">Base64 decode matches</a></li>
+ </ol>
+ </li>
<li><a href="#applyto">Apply to</a></li>
</ul>
</li>
@@ -83,19 +89,28 @@
<li><a name="patterntype"></a><strong>Pattern type:</strong> This specifies how Redirector should interpret the patterns, either as
<a href="#wildcards">wildcards</a> or <a href="#regularexpressions#">regular expressions</a>.</li>
- <li><a name="unescapematches"></a><strong>Unescape matches:</strong> A common usage of Redirector is to catch urls like
- <span class="url">http://foo.com/redirect.php?url=http%3A%2F%2Fbar%2Ecom%2Fpath</span> and try to catch the url parameter and redirect to it. A pattern
- like <span class="pattern">http://foo.com/redirect.php?url=*</span> might be used for that purpose. However, if the url parameter is <em>escaped</em> (also known
- as <em>urlencoded</em>) then that won't work. In the url above we see that it starts with <span class="url">http%3A%2F%2F</span> instead of <span class="url">http://</span>, and Firefox
- won't accept this as a new url to redirect to. So, in cases like these you can check the <em>Unescape matches</em> option and then all
- matches will be unescaped (turned from e.g. <span class="url">http%3A%2F%2Fbar%2Ecom</span> to <span class="url">http://bar.com</span>) before being inserted into the target url.
- </li>
-
- <li><a name="escapematches"></a><strong>Escape matches:</strong> The opposite of <a href="#unescapematches">Unescape matches</a>. Let's say you want to redirect all requests to
- a domain like <span class="url">http://example.com</span> to some proxy site that took the url to proxy as an url parameter. Then you might do something like the regular expression pattern
- <span class="pattern">^(http://example\.com/.*)</span> and redirect it to <span class="pattern">http://proxysite.com?url=$1</span>. If you used the Escape matches option then the
- final url would become <span class="url">http://proxysite.com?url=http%3A%2F%2Fexample.com%2Ffoo%2Fbar</span>.
- </li>
+ <li><a name="processmatches"></a><strong>Process Matches:</strong> In some cases parameters in urls are encoded in different ways. The Process Matches option allows you to select a few
+ different ways to process the Regular expression matches before using them. The decoding options available are:
+ <ul>
+ <li><a name="noprocessing"></a><strong>No Processing:</strong> This is the default. Just use the matches from the original url exactly as they are.</li>
+ <li><a name="urldecodematches"></a><strong>URL Decode matches:</strong> A common usage of Redirector is to catch urls like
+ <span class="url">http://foo.com/redirect.php?url=http%3A%2F%2Fbar%2Ecom%2Fpath</span> and try to catch the url parameter and redirect to it. A pattern
+ like <span class="pattern">http://foo.com/redirect.php?url=*</span> might be used for that purpose. However, if the url parameter is <em>escaped</em> (also known
+ as <em>urlencoded</em>) then that won't work. In the url above we see that it starts with <span class="url">http%3A%2F%2F</span> instead of <span class="url">http://</span>, and Firefox
+ won't accept this as a new url to redirect to. So, in cases like these you can select the <em>URL Decode matches</em> option and then all
+ matches will be URL decoded (turned from e.g. <span class="url">http%3A%2F%2Fbar%2Ecom</span> to <span class="url">http://bar.com</span>) before being inserted into the target url.
+ </li>
+
+ <li><a name="urlencodematches"></a><strong>URL Encode matches:</strong> The opposite of <a href="#urldecodematches">URL Decode matches</a>. Let's say you want to redirect all requests to
+ a domain like <span class="url">http://example.com</span> to some proxy site that took the url to proxy as an url parameter. Then you might do something like the regular expression pattern
+ <span class="pattern">^(http://example\.com/.*)</span> and redirect it to <span class="pattern">http://proxysite.com?url=$1</span>. If you used the Escape matches option then the
+ final url would become <span class="url">http://proxysite.com?url=http%3A%2F%2Fexample.com%2Ffoo%2Fbar</span>.
+ </li>
+
+ <li><a name="base64decodematches"></a><strong>Base64 Decode matches:</strong> Similar to URL Decoding, in some cases a parameter in a url might be Base64 encoded. This option will decode that parameter before using it in the target url.
+ </li>
+ </ul>
+ </li>
<li><a name="applyto"></a><strong>Apply to:</strong> The Apply to option is new in version 3.0 of Redirector. For 99% of cases you won't need this, so don't worry about it.
By default Redirector only redirects requests from the address bar of your browser, the page you're viewing. It doesn't redirect requests for scripts, iframes, images
diff --git a/manifest.json b/manifest.json
index d6f277f..4ea82fd 100644
--- a/manifest.json
+++ b/manifest.json
@@ -3,7 +3,7 @@
"manifest_version": 2,
"name": "Redirector",
"description": "Automatically redirect pages based on user-defined rules. E.g. always redirect an article url to its printer-friendly version.",
- "version": "3.0.5",
+ "version": "3.0.6",
"icons": { "16": "images/icon-active-16.png",
"32": "images/icon-active-32.png",
diff --git a/package.json b/package.json
index 669fa28..955112b 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"title": "Redirector",
"name": "redirector",
"id" : "redirector@einaregilsson.com",
- "version": "3.0.5",
+ "version": "3.0.6",
"homepage" : "http://einaregilsson.com/redirector",
"icon" : "resource://redirector-at-einaregilsson-dot-com/images/icon-active-48.png",
"icon64" : "resource://redirector-at-einaregilsson-dot-com/images/icon-active-64.png",