File: 04_remove-google-adsense.patch

package info (click to toggle)
circuits 3.1.0%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 9,764 kB
  • sloc: python: 15,945; makefile: 131
file content (27 lines) | stat: -rw-r--r-- 836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Remove Google AdSense tracking code.
Author: Daniele Tricoli <eriol@mornie.org>
Last-Update: 2015-07-12
Forwarded: not-needed

--- a/docs/source/_templates/layout.html
+++ b/docs/source/_templates/layout.html
@@ -2,19 +2,6 @@
 
 {%- block extrahead %}
 {{ super() }}
-<script type="text/javascript">
-  var _gaq = _gaq || [];
-  _gaq.push(['_setAccount', 'UA-18486793-1']);
-  _gaq.push(['_setDomainName', '.fabfile.org']);
-  _gaq.push(['_trackPageview']);
-
-  (function() {
-    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-  })();
-</script>
-
 {% endblock %}