diff --git a/kusama-guide/docusaurus.config.js b/kusama-guide/docusaurus.config.js index fa4876e8f9eb..1ed8d8412c45 100644 --- a/kusama-guide/docusaurus.config.js +++ b/kusama-guide/docusaurus.config.js @@ -22,6 +22,11 @@ module.exports = { src: "https://unpkg.com/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js", onload: "addBackToTop()", defer: true, + }, + { + src: "https://apisa.web3.foundation/latest.js", + async: true, + defer: true, }, "../js/custom.js", "../js/clipboard.min.js", diff --git a/kusama-guide/static/js/custom.js b/kusama-guide/static/js/custom.js index ebc556dd1af5..c92d2f7f323c 100644 --- a/kusama-guide/static/js/custom.js +++ b/kusama-guide/static/js/custom.js @@ -75,19 +75,3 @@ } }; })("docReady", window); - -docReady(function () { - setTimeout(function () { - // Custom logic goes here - - // Insert "Improve this wiki ribbon": Done in docusaurus.config.js - - // Add fathom to footer - let script = document.createElement("script"); - script.setAttribute("src", "https://lion.kusama.network/script.js"); - script.setAttribute("site", "PNZSQVUV"); - document.querySelector("#footer").appendChild(script); - - // Force edit button to go to non-mirror page: Done in docusaurus.config.js - }, 1000); -}); diff --git a/polkadot-wiki/docusaurus.config.js b/polkadot-wiki/docusaurus.config.js index 6b8d9f4151f7..a70beb912e67 100644 --- a/polkadot-wiki/docusaurus.config.js +++ b/polkadot-wiki/docusaurus.config.js @@ -21,6 +21,11 @@ module.exports = { src: 'https://unpkg.com/vanilla-back-to-top@7.2.1/dist/vanilla-back-to-top.min.js', onload: 'addBackToTop()', defer: true, + }, + { + src: "https://apisa.web3.foundation/latest.js", + async: true, + defer: true, }, '../js/custom.js', '../js/clipboard.min.js', diff --git a/polkadot-wiki/static/js/custom.js b/polkadot-wiki/static/js/custom.js index ab49c5e36adf..6062e4bcdefc 100644 --- a/polkadot-wiki/static/js/custom.js +++ b/polkadot-wiki/static/js/custom.js @@ -82,11 +82,5 @@ docReady(() => AOS.init(); - // Add fathom to footer - - let script = document.createElement("script"); - script.setAttribute("src", "https://mammal.polkadot.network/script.js"); - script.setAttribute("site", "YOUKYIQA"); - document.querySelector("body footer").appendChild(script); }, 500) );