nelle-observer/astro/public/scripts/fuckchrome.js
2024-08-17 13:23:43 -06:00

12 lines
No EOL
388 B
JavaScript

function onload() {
redirect()
}
function redirect() {
const chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ|Brave/.test(
navigator.userAgent
);
const disclaimer = `<div class="web-disclaimer">`;
if ((chromium) && (screen.width >= 699)) window.location.replace("/bsod");
if ((chromium) && (screen.width <= 699)) window.location.replace("/mobile-warn");
}