[HTTPS-E Rulesets] youtu.be
Osama Khalid
osamak at gnu.org
Fri Jun 3 08:19:31 PDT 2011
Here is a patch that automatically redirects youtu.be links to the
original, secure URL.
It also gives a better style for the file.
--Osama Khalid
-------------- next part --------------
diff --git a/src/chrome/content/rules/YouTube_testing.xml b/src/chrome/content/rules/YouTube_testing.xml
index db37a25..8d2bbb2 100644
--- a/src/chrome/content/rules/YouTube_testing.xml
+++ b/src/chrome/content/rules/YouTube_testing.xml
@@ -1,12 +1,17 @@
<ruleset name="YouTube (buggy)" default_off="breaks embedded videos">
+ <target host="youtube.com" />
+ <target host="*.youtube.com" />
+ <target host="*.ytimg.com" />
+ <target host="youtu.be" />
-<target host="youtube.com" />
-<target host="*.youtube.com" />
-<target host="*.ytimg.com" />
+ <exclusion pattern="^http://(www\.)?youtube\.com/crossdomain\.xml"/>
-<exclusion pattern="^http://(www\.)?youtube\.com/crossdomain\.xml"/>
-
-<rule from="^http://(www\.)?youtube\.com/" to="https://www.youtube.com/"/>
-<rule from="^http://insight\.youtube\.com/" to="https://insight.youtube.com/"/>
-<rule from="^http://([^/@:])+\.ytimg\.com/" to="https://$1.ytimg.com/" />
+ <rule from="^http://(www\.)?youtube\.com/"
+ to="https://www.youtube.com/"/>
+ <rule from="^http://insight\.youtube\.com/"
+ to="https://insight.youtube.com/"/>
+ <rule from="^http://([^/@:])+\.ytimg\.com/"
+ to="https://$1.ytimg.com/" />
+ <rule from="^http://youtu\.be/(\w{11})"
+ to="https://www.youtube.com/watch?v=$1&feature=youtu.be" />
</ruleset>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.eff.org/pipermail/https-everywhere-rules/attachments/20110603/e65176fb/attachment.sig>
More information about the HTTPS-Everywhere-Rules
mailing list