diff --git a/css/app.js b/css/app.js index ffcd3035..854f1f34 100644 --- a/css/app.js +++ b/css/app.js @@ -207,6 +207,12 @@ function fetchUrls(urls) { return hash.toString(CryptoJS.enc.Hex); } + + if(navigator.globalPrivacyControl) { + var gpcValue = navigator?.globalPrivacyControl + } else { + var gpcValue = false + } if (location.hostname === "poketube.fun") { if (typeof Ashley === "undefined") { @@ -245,6 +251,7 @@ function fetchUrls(urls) { return dntStatus === "Enabled" ? true : false; }; // only load if DNT is not enabled + if(!gpcValue) { if (Ashley && !Ashley.dntEnabled()) { var _paq = (window._paq = window._paq || []); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ @@ -271,6 +278,7 @@ function fetchUrls(urls) { })(); } } + } var popupMenu = document.getElementById("popupMenu"); var loopOption = document.getElementById("loopOption");