From 986ff0677c522295ae1d96982b2fc88a29da910c Mon Sep 17 00:00:00 2001
From: Ashley <iamashley@duck.com>
Date: Wed, 19 Apr 2023 19:24:33 +0000
Subject: [PATCH] disable plausible by default

---
 css/custom-css.js | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git a/css/custom-css.js b/css/custom-css.js
index 24eee0cf..a94cb184 100644
--- a/css/custom-css.js
+++ b/css/custom-css.js
@@ -17,21 +17,23 @@ if (style.styleSheet){
 }
 
 var script_tag = document.createElement('script');
+
+
 script_tag.type = 'text/javascript';
+
 script_tag.text = localStorage.getItem("poke-custom-script");
+
 document.head.appendChild(script_tag);
 
 /*
  * This script adds the Plausible analytics telemetry code to the page for the
- * domain poketube.fun. The telemetry is opt-in by default, meaning that the
- * Plausible script will only be added if the user has not explicitly opted out
- * by setting the "plausible-enabled" key in local storage to "false".
- *
- * To opt out of telemetry, u can can set the "plausible-enabled" key to "false"
- * in local storage. The data collected by Plausible is anonymous and aggregated,
- * and no personal information is collected or stored.
- */
-if (window.location.hostname === "poketube.fun") {
+ * domain poketube.fun.
+*/
+
+var config = {}
+config.plausible_enabled = false
+
+if (window.location.hostname === "poketube.fun" && config.plausible_enabled == true) {
   const plausble_main = "https://telemetry.poketube.fun/js/p.js";
   const script = document.createElement("script");
   const isTrackingEnabled = localStorage.getItem("plausible-enabled") !== "false";