mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-25 17:48:41 +01:00
add GPC
This commit is contained in:
parent
cfcc417fa5
commit
7fc4c75ae0
1 changed files with 8 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue