summaryrefslogtreecommitdiff
path: root/antiChrome_Brave.js
diff options
context:
space:
mode:
authoraxtloss <axtlos@disroot.org>2024-08-20 01:20:30 +0200
committeraxtloss <axtlos@disroot.org>2024-08-20 01:20:30 +0200
commite235aa6cf4914cbff6c72f19e0fcf6888da349f7 (patch)
tree0d488cadc02706aa2c7652b42e4f21342125c5f7 /antiChrome_Brave.js
parent479414a93ae03a4463c16d54b39cd155b1e04683 (diff)
downloadwebsite-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.gz
website-e235aa6cf4914cbff6c72f19e0fcf6888da349f7.tar.bz2
yayyy new website!!
Diffstat (limited to 'antiChrome_Brave.js')
-rw-r--r--antiChrome_Brave.js17
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);
- }})();