From abc92ba06bb84d544a0d1deb065eb608cac8190e Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 7 Jan 2008 22:44:06 +0000 Subject: Redirector 1.5 git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@102 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/help.html | 76 ++++++++++++++++++++++++++++++++++++--- chrome/content/overlay.js | 77 ++++++++++++++++++++++++++++------------ chrome/content/overlay.xul | 4 ++- chrome/content/redirectList.js | 8 ++--- chrome/content/redirectList.xul | 4 +-- chrome/content/redirector.js | 8 +++-- chrome/content/redirector.tws | Bin 0 -> 783 bytes 7 files changed, 140 insertions(+), 37 deletions(-) create mode 100644 chrome/content/redirector.tws (limited to 'chrome/content') diff --git a/chrome/content/help.html b/chrome/content/help.html index a9f5245..b4846aa 100644 --- a/chrome/content/help.html +++ b/chrome/content/help.html @@ -9,7 +9,7 @@
To be continued in next version...
+ +
+ Include pattern: http://example.com/foo
+ Exclude pattern:
+ Redirect to: http://example.com/bar
+ Pattern type: Wildcard
+
+ Include pattern: http://example.com/index.php?id=*&a=b
+ Exclude pattern:
+ Redirect to: http://example.com/printerfriendly.com?id=$1&a=b
+ Pattern type: Wildcard
+
+ Include pattern: http://example.com/index.php\?id=(\d+)&a=b
+ Exclude pattern:
+ Redirect to: http://example.com/printerfriendly.com?id=$1&a=b
+ Pattern type: Regular Expression
+
+ Include pattern: http://example.com/category/*/index.php
+ Exclude pattern: http://example.com/category/*/*/index.php
+ Redirect to: http://example.com/category/cats/index.php
+ Pattern type: Wildcard
+
+ Include pattern: http://mail.google.com*
+ Exclude pattern:
+ Redirect to: https://mail.google.com$1
+ Pattern type: Wildcard
+