[HTTPS-E Rulesets] More Google Chart

Osama Khalid osamak at gnu.org
Sun Jun 19 00:38:28 PDT 2011


This patch covers more Google Charts by redirecting requests from
chart.apis.google.com to chart.googleapis.com.

Works fine with all the results I tested from:

https://pay.reddit.com/search?q=site%3Achart.apis.google.com

In addition, it covers apis.google.com which is used by some JS tools.

--Osama Khalid
-------------- next part --------------
diff --git a/src/chrome/content/rules/GoogleAPIs.xml b/src/chrome/content/rules/GoogleAPIs.xml
index e86c218..53ca899 100644
--- a/src/chrome/content/rules/GoogleAPIs.xml
+++ b/src/chrome/content/rules/GoogleAPIs.xml
@@ -6,6 +6,8 @@
   <target host="google.com" />
   <target host="www.google.com" />
   <target host="translate.google.com" />
+  <target host="apis.google.com" />
+  <target host="*.apis.google.com" />
   <target host="gstatic.com" />
   <target host="*.gstatic.com" />
   <target host="api.recaptcha.net" />
@@ -42,6 +44,10 @@
           to="https://www.google.com/uds"/>
   <rule from="^http://(www\.)?google\.com/chart"
           to="https://www.google.com/chart"/>
+  <rule from="^http://apis\.google\.com/"
+	  to="https://apis.google.com/"/>
+  <rule from="^http://chart\.apis\.google\.com/chart"
+          to="https://chart.googleapis.com/chart"/>
 
 <!--  jsapi was causing problems on some sites that embed google maps:
       https://trac.torproject.org/projects/tor/ticket/2335
-------------- 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/20110619/e4fdaa7f/attachment.sig>


More information about the HTTPS-Everywhere-Rules mailing list