summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/greasemonkey/teddit.js
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-03-11 16:22:21 +0100
committerAdam Stück <adam@adast.xyz>2023-03-11 16:22:21 +0100
commitaa14ee0d1bf0c8f701e567558fcc0cd5fbfe0c95 (patch)
tree24c5098dfda02239aada4ca02742c34a8ea3ff8c /.config/qutebrowser/greasemonkey/teddit.js
parente9b9610421073fc8b7a93c2083bfd4af3d9b3208 (diff)
qutebrowser: added userscripts
Includes DarkReader (unofficial) and a few redirects to minimal, private front-ends.
Diffstat (limited to '.config/qutebrowser/greasemonkey/teddit.js')
-rw-r--r--.config/qutebrowser/greasemonkey/teddit.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/qutebrowser/greasemonkey/teddit.js b/.config/qutebrowser/greasemonkey/teddit.js
new file mode 100644
index 0000000..408e421
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey/teddit.js
@@ -0,0 +1,26 @@
+// ==UserScript==
+// @name Teddit
+// @version 1.0
+// @description reddit to teddit
+// @match *://reddit.com/*
+// @match *://*.reddit.com/*
+// @grant none
+// @run-at document-start
+// ==/UserScript==
+
+(function () {
+ 'use strict';
+
+ var instances = [
+ "teddit.zaggy.nl",
+ "teddit.namazso.eu",
+ "reddit.lol",
+ "teddit.totaldarkness.net",
+ "teddit.adminforge.de",
+ "teddit.bus-hit.me",
+ "td.vern.cc",
+ "teddit.sethforprivacy.com"
+ ];
+
+ top.location.hostname = instances[Math.floor(Math.random()*instances.length)];
+})();