Updated the blinky script to better support other browsers such as Edge

next
Gianmarco Gargiulo 2023-08-14 02:27:25 +02:00
parent c60d110d12
commit b2775715ba
1 changed files with 17 additions and 2 deletions

View File

@ -12,7 +12,10 @@ var isOpera = typeof window.opr !== "undefined";
var isIEedge = winNav.userAgent.indexOf("Edg") > -1;
var isIOSChrome = winNav.userAgent.match("CriOS");
if (
if (isIOSChrome && !window.location.href.includes("blinky")) {
// fuck off
window.location.replace("/blinky");
} else if(
isChromium !== null &&
typeof isChromium !== "undefined" &&
vendorName === "Google Inc." &&
@ -20,7 +23,19 @@ if (
isIEedge === false &&
!window.location.href.includes("blinky")
) {
window.location.replace("/blinky");
window.location.replace("/blinky"); // fuck off
} else {
// not Google Chrome
}
function isChromiumGoFuckYourselfMicrosoftEdge() {
for (brand_version_pair of navigator.userAgentData.brands) {
if (brand_version_pair.brand == "Chromium" && !window.location.href.includes("blinky")){
// fuck off
window.location.replace("/blinky");
}
}
}
isChromiumGoFuckYourselfMicrosoftEdge(); // yeah i know its a fucking hack. but edge pulled my hand.
// shitty code by GlitchyZorua.