Description: Don't include remote scripts
 We have them in Debian, use those.
 To refresh this patch:

 files=$(git grep -l '/cdn' -- ':^debian')
 quilt add $files
 sed -i \
   -e 's,{giacjsonline},{giacjshere},g' \
   -e 's,https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/,file:///usr/share/javascript/mathjax/,g' \
   -e '/^%\loadgiacjsonline/d' \
   $files
 quilt refresh

 (You might also have to update the URL in the sed expression.)
 
 Then refresh, pop, and manually remove false positives from this patch, e.g.
 %%comments and \verb literals and \newenvironment declarations. (This patch
 should contain no hunks that change \newenvironment declarations.)
Author: Ximin Luo <infinity0@debian.org>
Forwarded: not-needed
---
This patch header follows DEP-3: https://dep.debian.net/deps/dep3/
--- giac.orig/doc/algolycee.html
+++ giac/doc/algolycee.html
@@ -58,7 +58,7 @@
  (function () {
   var script = document.createElement("script");
   script.type = "text/javascript";
-  script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
+  script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-MML-AM_CHTML";
   document.getElementsByTagName("head")[0].appendChild(script);
 })();
 }
@@ -9790,7 +9790,7 @@
   if (UI.usemathjax){
     var script = document.createElement("script");
     script.type = "text/javascript";
-    script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
+    script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
     document.getElementsByTagName("head")[0].appendChild(script);
   }
   var elem= document.getElementById('controlindex');
--- giac.orig/doc/giac.tex
+++ giac/doc/giac.tex
@@ -1,7 +1,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% giac/hevea interaction code definitions
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Use one of the environment \begin{giacjs}...\end{giacjs} or \begin{giacjsonline}...\end{giacjsonline}
+%% Use one of the environment \begin{giacjs}...\end{giacjs} or \begin{giacjshere}...\end{giacjshere}
 %% to load the javascript code (from hard disk or Internet)
 %% Commands \giacinput{} or \giacinputmath{} or \giacinputbigmath{} 
 %% \giaccmd{} or \giaccmdmath{} or \giaccmdbigmath{} 
@@ -21,7 +21,7 @@
  (function () {
   var script = document.createElement("script");
   script.type = "text/javascript";
-  script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
+  script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-MML-AM_CHTML";
   document.getElementsByTagName("head")[0].appendChild(script);
 })();
 }
@@ -958,7 +958,7 @@
   if (UI.usemathjax){
     var script = document.createElement("script");
     script.type = "text/javascript";
-    script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
+    script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
     document.getElementsByTagName("head")[0].appendChild(script);
   }
   var elem= document.getElementById('controlindex');
--- giac.orig/doc/giacfr.tex
+++ giac/doc/giacfr.tex
@@ -1,7 +1,7 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% giac/hevea interaction code definitions
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Use one of the environment \begin{giacjs}...\end{giacjs} or \begin{giacjsonline}...\end{giacjsonline}
+%% Use one of the environment \begin{giacjs}...\end{giacjs} or \begin{giacjshere}...\end{giacjshere}
 %% to load the javascript code (from hard disk or Internet)
 %% Commands \giacinput{} or \giacinputmath{} or \giacinputbigmath{} 
 %% \giaccmd{} or \giaccmdmath{} or \giaccmdbigmath{} 
@@ -20,7 +20,7 @@
  (function () {
   var script = document.createElement("script");
   script.type = "text/javascript";
-  script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
+  script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-MML-AM_CHTML";
   document.getElementsByTagName("head")[0].appendChild(script);
 })();
 }
@@ -957,7 +957,7 @@
   if (UI.usemathjax){
     var script = document.createElement("script");
     script.type = "text/javascript";
-    script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
+    script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
     document.getElementsByTagName("head")[0].appendChild(script);
   }
   var elem= document.getElementById('controlindex');
--- giac.orig/doc/testfr.tex
+++ giac/doc/testfr.tex
@@ -93,19 +93,19 @@
 
 \section{Utilisation} 
 La commande\verb|\begin{giacjshere}|\index{giacjshere}, 
-\verb|\begin{giacjs}|\index{giacjs} ou \verb|\begin{giacjsonline}|\index{giacjsonline}
+\verb|\begin{giacjs}|\index{giacjs} ou \verb|\begin{giacjshere}|\index{giacjshere}
 doit figurer juste apr\`es \verb|\begin{document}|, selon que l'on va charger le moteur
 de calcul \verb|giac.js| de la m\^eme fa\c{c}on que la page HTML,
 depuis une installation de Xcas sur le disque dur
 ou depuis le serveur de l'Institut Fourier. La
 commande correspondante \verb|\end{giacjs}|, \verb|\end{giacjshere}| 
-ou \verb|\end{giacjsonline}| 
+ou \verb|\end{giacjshere}| 
 doit figurer juste avant \verb|\end{document}|.
 Pour que les liens du tableau de bord Table et Index fonctionnent,
 vous devez imprimer la table des mati\`eres et l'index au d\'ebut du
 document, comme dans ce fichier (commandes \verb|\tableofcontents|\index{table} et
 \verb|\printindex|\index{index} juste apr\`es
-\verb|\begin{giacjsonline}| et commande \verb|\makeindex| 
+\verb|\begin{giacjshere}| et commande \verb|\makeindex| 
 juste avant \verb|\begin{document}|).
 
 Pour cr\'eer une commande en ligne avec r\'eponse en MathML (ou
--- giac.orig/doc/xcas.js
+++ giac/doc/xcas.js
@@ -2919,7 +2919,7 @@
         if (!UI.usemathjax) {
           var script = document.createElement("script");
           script.type = "text/javascript";
-          script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML";
+          script.src = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML";
           document.getElementsByTagName("head")[0].appendChild(script);
           window.setTimeout(UI.setmathjax, 400);
         }
--- giac.orig/doc/xcasen.html
+++ giac/doc/xcasen.html
@@ -3676,7 +3676,7 @@
         (function () {
             var script = document.createElement("script");
             script.type = "text/javascript";
-            script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML";
+            script.src = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML";
             document.getElementsByTagName("head")[0].appendChild(script);
         })();
     }
--- giac.orig/doc/xcasfr.html
+++ giac/doc/xcasfr.html
@@ -3871,7 +3871,7 @@
         (function () {
             var script = document.createElement("script");
             script.type = "text/javascript";
-            script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML";
+            script.src = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS_CHTML";
             document.getElementsByTagName("head")[0].appendChild(script);
         })();
     }
--- giac.orig/doc/castex.tex
+++ giac/doc/castex.tex
@@ -183,7 +183,7 @@
 %  (function () {
 %   var script = document.createElement("script");
 %   script.type = "text/javascript";
-%   script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
+%   script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-MML-AM_CHTML";
 %   document.getElementsByTagName("head")[0].appendChild(script);
 % })();
 % }
--- giac.orig/doc/test.html
+++ giac/doc/test.html
@@ -58,7 +58,7 @@
  (function () {
   var script = document.createElement("script");
   script.type = "text/javascript";
-  script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML";
+  script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-MML-AM_CHTML";
   document.getElementsByTagName("head")[0].appendChild(script);
 })();
 }
@@ -133,17 +133,17 @@
 preamble of your L<sup>A</sup>T<sub>E</sub>X source file
 and add one of the commands <code>\begin{giacjshere}</code><a id="hevea_default0"></a>
 <code>\begin{giacjs}</code><a id="hevea_default1"></a> or 
-<code>\begin{giacjsonline}</code><a id="hevea_default2"></a>
+<code>\begin{giacjshere}</code><a id="hevea_default2"></a>
 just after <code>\begin{document}</code>: the difference is that the javascript
 kernel <code>giac.js</code>
 will either be found from the same place where the file was downloaded
 or on the hard disk (assuming that Giac/Xcas is
 installed on the target computer) or downloaded from Giac Internet website.
 You must also add the corresponding command <code>\end{giacjs}</code> or
-<code>\end{giacjsonline}</code> just before <code>\end{document}</code>.
+<code>\end{giacjshere}</code> just before <code>\end{document}</code>.
 You should add the command <code>\tableofcontents</code><a id="hevea_default3"></a> then
 <code>\printindex</code><a id="hevea_default4"></a> just after
-<code>\begin{giacjsonline}</code> (and add <code>\makeindex</code> somewhere).</p><p>Inline command with Mathml or 2d graph output 
+<code>\begin{giacjshere}</code> (and add <code>\makeindex</code> somewhere).</p><p>Inline command with Mathml or 2d graph output 
 <code>\giacinputmath{}</code> or <code>\giaccmdmath{}{}</code> :<br>
 <code>\giacinputmath{factor(x^10-1)}</code><a id="hevea_default5"></a><br>
 <br><textarea onkeypress="UI.ckenter(event,this,2)" 
@@ -1107,7 +1107,7 @@
   if (UI.usemathjax){
     var script = document.createElement("script");
     script.type = "text/javascript";
-    script.src  = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
+    script.src  = "file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
     document.getElementsByTagName("head")[0].appendChild(script);
   }
   var elem= document.getElementById('controlindex');
