mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-29 22:08:41 +01:00
remove broken code
This commit is contained in:
parent
bf03245830
commit
c762d55946
1 changed files with 1 additions and 39 deletions
|
@ -2641,44 +2641,6 @@ window.addEventListener("unload", cleanup)
|
||||||
<!-- SCRIPTS END -->
|
<!-- SCRIPTS END -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% if(secure) { %>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
var statsurl = "https://invid-api.poketube.fun/api/v1/stats"
|
|
||||||
|
|
||||||
const userAgent = window.navigator.userAgent;
|
|
||||||
let browserName = "Unknown";
|
|
||||||
|
|
||||||
if (userAgent.includes("Firefox")) {
|
|
||||||
browserName = "Firefox";
|
|
||||||
} else if (userAgent.includes("Chrome")) {
|
|
||||||
browserName = "Chrome";
|
|
||||||
} else if (userAgent.includes("Safari")) {
|
|
||||||
browserName = "Safari";
|
|
||||||
} else if (userAgent.includes("Edge")) {
|
|
||||||
browserName = "Edge";
|
|
||||||
} else if (userAgent.includes("Opera") || userAgent.includes("OPR")) {
|
|
||||||
browserName = "Opera";
|
|
||||||
} else if (userAgent.includes("MSIE") || userAgent.includes("Trident/")) {
|
|
||||||
|
|
||||||
browserName = "Internet Explorer";
|
|
||||||
}
|
|
||||||
|
|
||||||
function applyBtoaMultipleTimes(input, times) {
|
|
||||||
let result = input;
|
|
||||||
for (let i = 0; i < times; i++) {
|
|
||||||
result = btoa(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
const encodedBrowserName = applyBtoaMultipleTimes(browserName.replace("o", "h").replace("fire", "ggteh"), 15);
|
|
||||||
|
|
||||||
fetch(statsurl + "?browser=" + encodedBrowserName)
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
|
|
||||||
</ptd-app-ejs>
|
</ptd-app-ejs>
|
||||||
|
|
Loading…
Reference in a new issue