From f17be7e04905617083b942a9dc55388e16e0edf6 Mon Sep 17 00:00:00 2001 From: Calvin Zhang Date: Wed, 3 Sep 2025 23:38:39 -0700 Subject: [PATCH] feat: removed hotjar, reo, and koala --- docusaurus.config.js | 2 -- static/hotjar.js | 8 -------- static/koala.js | 34 ---------------------------------- static/reo.js | 12 ------------ 4 files changed, 56 deletions(-) delete mode 100644 static/hotjar.js delete mode 100644 static/koala.js delete mode 100644 static/reo.js diff --git a/docusaurus.config.js b/docusaurus.config.js index c44e63ef6..3da9ccd3d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -26,13 +26,11 @@ const config = { organizationName: "timeplus-io", // Usually your GitHub org/user name. projectName: "docs", // Usually your repo name. scripts: [ - "/hotjar.js", { src: "https://data.timeplus.com/p.js", async: true }, { // This script triggers page() on every page change. (URL Encoded) src: "data:,let%20prevUrl%20%3D%20undefined%3B%0AsetInterval%28%28%29%20%3D%3E%20%7B%0A%20%20const%20currUrl%20%3D%20window.location.href%3B%0A%20%20if%20%28currUrl%20%21%3D%3D%20prevUrl%29%20%7B%0A%20%20%20%20%2F%2F%20URL%20changed%0A%20%20%20%20prevUrl%20%3D%20currUrl%3B%0A%20%20%20%20if%20%28window.jitsu%29%20%7B%0A%20%20%20%20%20%20window.jitsu.page%28%29%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%2C%201000%29%3B", }, - "/koala.js", "factorsai.js", ], plugins: ["docusaurus-plugin-hubspot"], diff --git a/static/hotjar.js b/static/hotjar.js deleted file mode 100644 index 8b9dc0286..000000000 --- a/static/hotjar.js +++ /dev/null @@ -1,8 +0,0 @@ -(function(h,o,t,j,a,r){ - h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; - h._hjSettings={hjid:3578630,hjsv:6}; - a=o.getElementsByTagName('head')[0]; - r=o.createElement('script');r.async=1; - r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; - a.appendChild(r); -})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); \ No newline at end of file diff --git a/static/koala.js b/static/koala.js deleted file mode 100644 index b2ac4ae2d..000000000 --- a/static/koala.js +++ /dev/null @@ -1,34 +0,0 @@ -!(function (t) { - if (window.ko) return; - (window.ko = []), - [ - "identify", - "track", - "removeListeners", - "open", - "on", - "off", - "qualify", - "ready", - ].forEach(function (t) { - ko[t] = function () { - var n = [].slice.call(arguments); - return n.unshift(t), ko.push(n), ko; - }; - }); - var n = document.createElement("script"); - (n.async = !0), - n.setAttribute( - "src", - "https://cdn.getkoala.com/v1/pk_97c9e8693615e1baf7e10b3779530209fd37/sdk.js", - ), - (document.body || document.head).appendChild(n); - - var img = document.createElement("img"); - img.setAttribute("referrerpolicy", "no-referrer-when-downgrade"); - img.setAttribute( - "src", - "https://static.scarf.sh/a.png?x-pxid=c360275b-ee5f-4c2e-802f-0d092433f713", - ); - (document.body || document.head).appendChild(img); -})(); diff --git a/static/reo.js b/static/reo.js deleted file mode 100644 index 3b3066357..000000000 --- a/static/reo.js +++ /dev/null @@ -1,12 +0,0 @@ -!(function () { - var e, t, n; - ((e = "42f495c8c5244dd"), - (t = function () { - Reo.init({ clientID: e }); - }), - ((n = document.createElement("script")).src = - "https://static.reo.dev/" + e + "/reo.js"), - (n.defer = !0), - (n.onload = t), - document.head.appendChild(n)); -})();