Updated the blinky script to better support other browsers such as Edge
parent
c60d110d12
commit
b2775715ba
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue