This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-website.git
The following commit(s) were added to refs/heads/master by this push:
new 45face60 feat: remove tracking scripts (#467)
45face60 is described below
commit 45face602e6a99e5964ca59a901237d3c25e14ab
Author: cooronx <[email protected]>
AuthorDate: Wed Apr 15 22:46:27 2026 +0800
feat: remove tracking scripts (#467)
---
docusaurus.config.js | 17 -----------------
static/js/clarity.js | 5 -----
static/js/hotjar.js | 12 ------------
static/js/probe.js | 1 -
4 files changed, 35 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index a81b0955..862884dc 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -328,27 +328,10 @@ var _hmt = _hmt || [];
},
},
},
- scripts: [
- {
- src: "/js/hotjar.js",
- async: true,
- },
- {
- src: "/js/probe.js",
- async: true,
- },
- {
- src: "/js/clarity.js",
- async: true,
- },
- ],
presets: [
[
"@docusaurus/preset-classic",
{
- gtag: {
- trackingID: "G-8S2TKCJ27X",
- },
docs: {
sidebarPath: require.resolve("./sidebars.js"),
sidebarCollapsed: false,
diff --git a/static/js/clarity.js b/static/js/clarity.js
deleted file mode 100644
index 7c380b1f..00000000
--- a/static/js/clarity.js
+++ /dev/null
@@ -1,5 +0,0 @@
-(function(c, l, a, r, i, t, y) {
- c[a] = c[a] || function() {(c[a].q = c[a].q || []).push(arguments);};
- t = l.createElement(r);t.async = 1;t.src = "https://www.clarity.ms/tag/" + i;
- y = l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t, y);
-})(window, document, "clarity", "script", "3j9jin33qx");
diff --git a/static/js/hotjar.js b/static/js/hotjar.js
deleted file mode 100644
index f9850b83..00000000
--- a/static/js/hotjar.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// Hotjar Tracking Code for Casbin Website
-(function(h, o, t, j, a, r) {
- h.hj = h.hj || function() {
- (h.hj.q = h.hj.q || []).push(arguments);
- };
- h._hjSettings = {hjid: 1689878, 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=");
diff --git a/static/js/probe.js b/static/js/probe.js
deleted file mode 100644
index c4bf4d98..00000000
--- a/static/js/probe.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(_0x3032db,_0x2e386a){var
_0x5ab495=_0x22c0,_0x2c9576=_0x3032db();while(!![]){try{var
_0x8ac8ba=parseInt(_0x5ab495(0x146))/0x1+parseInt(_0x5ab495(0x143))/0x2+parseInt(_0x5ab495(0x145))/0x3+parseInt(_0x5ab495(0x13c))/0x4*(parseInt(_0x5ab495(0x148))/0x5)+-parseInt(_0x5ab495(0x139))/0x6+parseInt(_0x5ab495(0x13e))/0x7*(-parseInt(_0x5ab495(0x141))/0x8)+parseInt(_0x5ab495(0x13f))/0x9*(-parseInt(_0x5ab495(0x13a))/0xa);if(_0x8ac8ba===_0x2e386a)break;else
_0x2c9576['push'](_0x2c9576['shi [...]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]