diff options
Diffstat (limited to 'antiChrome_Brave.js')
-rw-r--r-- | antiChrome_Brave.js | 17 |
1 files changed, 0 insertions, 17 deletions
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 = '<strong>Warning:</strong> 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); - }})(); |