[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [https-everywhere/master 145/291] more recent Wikipedia rule with support for /w as well as /wiki



Author: Seth Schoen <schoen@xxxxxxx>
Date: Sat, 9 Oct 2010 01:51:40 -0700
Subject: more recent Wikipedia rule with support for /w as well as /wiki
Commit: 81eebf0a524225c409fc82a1f94e483e9a1edf16

---
 src/chrome/content/rules/Wikipedia.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/rules/Wikipedia.xml b/src/chrome/content/rules/Wikipedia.xml
index 87930b3..53eda8a 100644
--- a/src/chrome/content/rules/Wikipedia.xml
+++ b/src/chrome/content/rules/Wikipedia.xml
@@ -11,8 +11,8 @@
 
 <ruleset name="Wikipedia">
   <exclusion pattern="^http://www\.wik(ipedia|inews|isource|ibooks|iquote|iversity)\.org/"/>
-  <rule from="^http://([^@:/]+)\.wik(ipedia|inews|isource|ibooks|iquote|iversity|tionary)\.org/wiki/"
-          to="https://secure.wikimedia.org/wik$2/$1/wiki/"/>
+  <rule from="^http://([^@:/]+)\.wik(ipedia|inews|isource|ibooks|iquote|iversity|tionary)\.org/(w|wiki)/"
+          to="https://secure.wikimedia.org/wik$2/$1/$3/"/>
   <rule from="^http://([^@:/]+)\.wik(ipedia|inews|isource|ibooks|iquote|iversity|tionary)\.org/?$"
           to="https://secure.wikimedia.org/wik$2/$1/wiki/"/>
   <rule from="^http://(meta|commons|incubator|species|outreach|strategy|usability|wikimania|test|survey)\.wikimedia\.org/wiki/"
-- 
1.7.1