[HTTPS-Everywhere] Fixes for Twitch.tv

Numismatika numismatika-everywhere at eclipso.ch
Mon Apr 7 02:27:48 PDT 2014


Hello,
the current rewrite from www-cdn to justin.tv doesn't work.
The files only exist on the cdn domain.
I fixed this and added 2 more subdomains to the ruleset.
Regards,
Numismatika

-------------- next part --------------
>From ab8c8ce31e4c9810dad3401ad80e5e6d2c937765 Mon Sep 17 00:00:00 2001
From: Numismatika <anyone at nowhere.com>
Date: Mon, 7 Apr 2014 10:53:00 +0200
Subject: [PATCH 1/2] www-cdn.jtvnw.net supports TLS

---
 src/chrome/content/rules/Justin.tv.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/rules/Justin.tv.xml b/src/chrome/content/rules/Justin.tv.xml
index 64adc63..b9cd0f9 100644
--- a/src/chrome/content/rules/Justin.tv.xml
+++ b/src/chrome/content/rules/Justin.tv.xml
@@ -16,7 +16,6 @@
 
 		- s *
 		- static	(mismatched, CN: *.justin.tv)
-		- www-cdn *
 		- blog.justin.tv	(wordpress)
 
 	* Times out
@@ -41,13 +40,14 @@
 	<target host="justin.tv" />
 	<target host="static.justin.tv" />
 	<target host="twitch.tv" />
+	
 
 
 	<rule from="^https?://s(?:tatic(?:-cdn)?)?\.jtvnw\.net/"
 		to="https://static.justin.tv/" />
 
 	<rule from="^https?://www-cdn\.jtvnw\.net/"
-		to="https://justin.tv/" />
+		to="https://www-cdn.jtvnw.net/" />
 
 	<rule from="^http://(static\.)?(justin|twitch)\.tv/"
 		to="https://$1$2.tv/" />
-- 
1.7.11.msysgit.1

-------------- next part --------------
>From 26654ad2a74341c7090f5a940fe8bd2e9080ddb5 Mon Sep 17 00:00:00 2001
From: Numismatika <anyone at nowhere.com>
Date: Mon, 7 Apr 2014 11:25:04 +0200
Subject: [PATCH 2/2] add: - api.twitch.tv - chatdepot.twitch.tv

---
 src/chrome/content/rules/Justin.tv.xml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/chrome/content/rules/Justin.tv.xml b/src/chrome/content/rules/Justin.tv.xml
index b9cd0f9..55f84fd 100644
--- a/src/chrome/content/rules/Justin.tv.xml
+++ b/src/chrome/content/rules/Justin.tv.xml
@@ -40,7 +40,7 @@
 	<target host="justin.tv" />
 	<target host="static.justin.tv" />
 	<target host="twitch.tv" />
-	
+	<target host="*.twitch.tv" />
 
 
 	<rule from="^https?://s(?:tatic(?:-cdn)?)?\.jtvnw\.net/"
@@ -52,4 +52,7 @@
 	<rule from="^http://(static\.)?(justin|twitch)\.tv/"
 		to="https://$1$2.tv/" />
 
+	<rule from="^http://api\.twitch\.tv/" to="https://api.twitch.tv/"/>
+	
+	<rule from="^http://chatdepot\.twitch\.tv/" to="https://chatdepot.twitch.tv/"/>
 </ruleset>
-- 
1.7.11.msysgit.1



More information about the HTTPS-Everywhere mailing list