File: deb_disable_google_online_snippets

package info (click to toggle)
nipype 1.8.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,808 kB
  • sloc: python: 156,217; javascript: 9,246; tcl: 608; sh: 485; makefile: 165
file content (92 lines) | stat: -rw-r--r-- 2,980 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Author: Yaroslav Halchenko
Last-UPdate: 2014-10-14 09:17:59
Description: disable Google online snippets

--- a/doc/searchresults.rst
+++ b/doc/searchresults.rst
@@ -8,6 +8,8 @@
 
 .. raw:: html
 
+   <div id="cse" style="width: 100%;">Google custom search is disabled in offline docs</div>
+   <!--
    <div id="cse" style="width: 100%;">Loading
    <script>
      (function() {
@@ -22,3 +24,4 @@
    </script>
    <gcse:search></gcse:search>
    </div>
+   -->
--- a/doc/_templates/gse.html
+++ b/doc/_templates/gse.html
@@ -24,6 +24,8 @@
 </style>
 
 <div class="sidebarblock">
+    <div>Google custom search is disabled in offline docs</div>
+    <!--
     <script>
       (function() {
         var cx = '010960497803984932957:u8pmqf7fdoq';
@@ -36,5 +38,6 @@
       })();
     </script>
     <gcse:search></gcse:search>
+    -->
 </div>
 {% endblock %}
--- a/doc/_templates/layout.html
+++ b/doc/_templates/layout.html
@@ -8,15 +8,9 @@
 {% block extrahead %}
 {{ super() }}
 <meta name="keywords" content="nipype, neuroimaging, pipeline, workflow, parallel, python, neuroscience">
-<script type="text/javascript">
-  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
-  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
-  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
-  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
-  ga('create', 'UA-339450-7', 'nipy.org/nipype');
-  ga('send', 'pageview');
-</script>
+<!-- google analytics snippet was completely removed by Debian maintainers.
+     See http://lintian.debian.org/tags/privacy-breach-google-adsense.html
+     for more information -->
 <script>
   ((window.gitter = {}).chat = {}).options = {
     room: 'nipy/nipype'
@@ -48,8 +42,7 @@
 
 {% block footer %}
 {{ super() }}
-<div class="footer">This page uses <a href="http://analytics.google.com/">
-Google Analytics</a> to collect statistics. You can disable it by blocking
-the JavaScript coming from www.google-analytics.com.
-</div>
+<!-- google analytics snippet was completely removed by Debian maintainers.
+     See http://lintian.debian.org/tags/privacy-breach-google-adsense.html
+     for more information -->
 {% endblock %}
--- a/doc/_templates/navbar.html
+++ b/doc/_templates/navbar.html
@@ -1,4 +1,3 @@
-<link rel="stylesheet" href="https://www.google.com/cse/style/look/default.css" type="text/css" />
 <style type="text/css">
     a.navbar {
     letter-spacing: .05em;
--- a/doc/_templates/sidebar_versions.html
+++ b/doc/_templates/sidebar_versions.html
@@ -28,11 +28,4 @@
 </div>
 
 
-<script type="text/javascript">
-    (function() {
-        var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
-        po.src = 'https://apis.google.com/js/plusone.js';
-        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
-    })();
-</script>
 {% endblock %}