2024-08-17 13:23:43 -06:00
|
|
|
function redirect() {
|
2024-08-24 16:41:57 -06:00
|
|
|
const chromium = /Chrome|Chromium|OPR|Opera|Edge|UC|QQ/.test(
|
2024-08-20 19:18:23 -06:00
|
|
|
navigator.userAgent
|
|
|
|
);
|
2024-09-01 20:50:03 -06:00
|
|
|
|
2024-08-24 16:41:57 -06:00
|
|
|
if (navigator.brave) {
|
2024-09-01 20:50:03 -06:00
|
|
|
window.location.replace("https://www.youtube.com/watch?v=dQw4w9WgXcQ");
|
2024-08-24 16:41:57 -06:00
|
|
|
}
|
|
|
|
if (!navigator.brave) {
|
2024-09-01 20:50:03 -06:00
|
|
|
if (!localStorage.getItem("disclaimerAccepted")) {
|
|
|
|
if (chromium && screen.width >= 699) {
|
|
|
|
window.location.replace("/bsod");
|
|
|
|
}
|
|
|
|
if (chromium && screen.width <= 699) {
|
|
|
|
window.location.replace("/mobile-warn");
|
2024-08-24 14:51:55 -06:00
|
|
|
}
|
2024-08-24 02:42:43 -06:00
|
|
|
}
|
2024-09-01 20:50:03 -06:00
|
|
|
}
|
2024-08-20 19:18:23 -06:00
|
|
|
}
|