From e235aa6cf4914cbff6c72f19e0fcf6888da349f7 Mon Sep 17 00:00:00 2001 From: axtloss Date: Tue, 20 Aug 2024 01:20:30 +0200 Subject: yayyy new website!! --- antiChrome_Brave.js | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 antiChrome_Brave.js (limited to 'antiChrome_Brave.js') diff --git a/antiChrome_Brave.js b/antiChrome_Brave.js deleted file mode 100644 index db2b07b..0000000 --- a/antiChrome_Brave.js +++ /dev/null @@ -1,17 +0,0 @@ - (async function(){ - var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor); - var isBrave = (navigator.brave && await navigator.brave.isBrave()) || false; - if (isBrave) { - window.location.href = 'https://xenia.blahaj.land/not-very-brave.html'; - } - else if (isChrome) { - var warningDiv = document.createElement('div'); - warningDiv.style.backgroundColor = '#f8d7da'; - warningDiv.style.color = '#721c24'; - warningDiv.style.padding = '20px'; - warningDiv.style.margin = '10px'; - warningDiv.style.border = '1px solid #f5c6cb'; - warningDiv.style.borderRadius = '5px'; - warningDiv.innerHTML = 'Warning: You appear to be using the chrome browser! While it is your right to choose whatever software to use, you should be aware of the monopolistic position google is building with their Chrome browser and the freedoms they take away from you by using chrome! Such as the freedom to use ad blockers.'; - document.body.appendChild(warningDiv); - }})(); -- cgit v1.2.3