summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Stück <adam@adast.xyz>2023-04-30 21:29:16 +0200
committerAdam Stück <adam@adast.xyz>2023-04-30 21:59:58 +0200
commitd0ba640f674c18a9ae15aec23e80aeb9b6e4af71 (patch)
tree93d49d28be83be36ef13a65b3d2720ed75ae3345
parentb7b0887f88ffa4dd63a85aaa27d305db18555675 (diff)
qutebrowser: moved greasemonkey scripts
Intended usage is to symlink available scripts to .config/qutebrowser/greasemonkey/ (like nginx sites)
-rw-r--r--.config/qutebrowser/greasemonkey-available/code.js18
-rw-r--r--.config/qutebrowser/greasemonkey-available/darkreader.js36
-rw-r--r--.config/qutebrowser/greasemonkey-available/dumb.js19
-rw-r--r--.config/qutebrowser/greasemonkey-available/invidious.js13
-rw-r--r--.config/qutebrowser/greasemonkey-available/nitter.js15
-rw-r--r--.config/qutebrowser/greasemonkey-available/rimgo.js16
-rw-r--r--.config/qutebrowser/greasemonkey-available/teddit.js22
l---------.config/qutebrowser/greasemonkey/code.js1
l---------.config/qutebrowser/greasemonkey/dumb.js1
l---------.config/qutebrowser/greasemonkey/invidious.js1
l---------.config/qutebrowser/greasemonkey/nitter.js1
l---------.config/qutebrowser/greasemonkey/rimgo.js1
l---------.config/qutebrowser/greasemonkey/teddit.js1
13 files changed, 139 insertions, 6 deletions
diff --git a/.config/qutebrowser/greasemonkey-available/code.js b/.config/qutebrowser/greasemonkey-available/code.js
new file mode 100644
index 0000000..d28a85f
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/code.js
@@ -0,0 +1,18 @@
+// ==UserScript==
+// @name AnonymousOverflow
+// @version 1.0
+// @match *://stackoverflow.com/*
+// @match *://*.stackoverflow.com/*
+// @grant none
+// @run-at document-start
+// ==/UserScript==
+
+(function () {
+ 'use strict';
+
+ var instances = [
+ "code.whatever.social",
+ ];
+
+ top.location.hostname = instances[Math.floor(Math.random()*instances.length)];
+})();
diff --git a/.config/qutebrowser/greasemonkey-available/darkreader.js b/.config/qutebrowser/greasemonkey-available/darkreader.js
new file mode 100644
index 0000000..7fcd98a
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/darkreader.js
@@ -0,0 +1,36 @@
+// ==UserScript==
+// @name Dark Reader (Unofficial)
+// @icon https://darkreader.org/images/darkreader-icon-256x256.png
+// @namespace DarkReader
+// @description Inverts the brightness of pages to reduce eye strain
+// @version 4.7.15
+// @author https://github.com/darkreader/darkreader#contributors
+// @homepageURL https://darkreader.org/ | https://github.com/darkreader/darkreader
+// @run-at document-end
+// @grant none
+// @include http*
+// @include qute*
+// @exclude *://discord.com/*
+// @exclude *://github.com/*
+// @exclude *://*sr.ht*/*
+// @exclude *://invidious.*
+// @exclude *://yewtu.be/*
+// @exclude *://teddit.*
+// @exclude *://*translate*/*
+// @exclude *://*.thomann.de/*
+// @exclude *://search.adast.dk/*
+// @exclude *://s.adast.dk/*
+// @exclude *://cloud.adast.dk/*
+// @exclude *://tv.adast.dk/*
+// @exclude *://trello.com/*
+// @exclude *://conversejs.org/*
+// @exclude *://mov.im/*
+// @require https://cdn.jsdelivr.net/npm/darkreader/darkreader.min.js
+// @noframes
+// ==/UserScript==
+
+DarkReader.enable({
+ brightness: 100,
+ contrast: 100,
+ sepia: 0
+});
diff --git a/.config/qutebrowser/greasemonkey-available/dumb.js b/.config/qutebrowser/greasemonkey-available/dumb.js
new file mode 100644
index 0000000..18507ea
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/dumb.js
@@ -0,0 +1,19 @@
+// ==UserScript==
+// @name Dumb
+// @version 1.0
+// @description genius to dumb
+// @match *://genius.com/*
+// @match *://*.genius.com/*
+// @grant none
+// @run-at document-start
+// ==/UserScript==
+
+(function () {
+ 'use strict';
+
+ var instances = [
+ "sing.whatever.social",
+ ];
+
+ top.location.hostname = instances[Math.floor(Math.random()*instances.length)];
+})();
diff --git a/.config/qutebrowser/greasemonkey-available/invidious.js b/.config/qutebrowser/greasemonkey-available/invidious.js
new file mode 100644
index 0000000..6f096e5
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/invidious.js
@@ -0,0 +1,13 @@
+// ==UserScript==
+// @name Invidious
+// @description youtube to invidious
+// @match *://youtube.com/*
+// @match *://*.youtube.com/*
+// @grant none
+// @run-at document-start
+// ==/UserScript==
+
+(function () {
+ 'use strict';
+ top.location.hostname = "invidious.snopyta.org";
+})();
diff --git a/.config/qutebrowser/greasemonkey-available/nitter.js b/.config/qutebrowser/greasemonkey-available/nitter.js
new file mode 100644
index 0000000..40e99b9
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/nitter.js
@@ -0,0 +1,15 @@
+// ==UserScript==
+// @name Nitter
+// @namespace https://gist.github.com/bitraid/d1901de54382532a03b9b22a207f0417
+// @version 1.0
+// @description twitter to nitter
+// @match *://twitter.com/*
+// @match *://mobile.twitter.com/*
+// @grant none
+// @run-at document-start
+// ==/UserScript==
+
+(function () {
+ 'use strict';
+ top.location.hostname = "nitter.net";
+})();
diff --git a/.config/qutebrowser/greasemonkey-available/rimgo.js b/.config/qutebrowser/greasemonkey-available/rimgo.js
new file mode 100644
index 0000000..1f65f83
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/rimgo.js
@@ -0,0 +1,16 @@
+// ==UserScript==
+// @name Rimgo
+// @match http://imgur.com/*
+// @match https://imgur.com/*
+// @match http://i.imgur.com/*
+// @match https://i.imgur.com/*
+// @match http://www.imgur.com/*
+// @match https://www.imgur.com/*
+// @grant none
+// @run-at document-start
+// ==/UserScript==
+
+(function () {
+ 'use strict';
+ top.location.hostname = "rimgo.bus-hit.me";
+})();
diff --git a/.config/qutebrowser/greasemonkey-available/teddit.js b/.config/qutebrowser/greasemonkey-available/teddit.js
new file mode 100644
index 0000000..d0466d8
--- /dev/null
+++ b/.config/qutebrowser/greasemonkey-available/teddit.js
@@ -0,0 +1,22 @@
+// ==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.namazso.eu",
+ "teddit.totaldarkness.net",
+ "teddit.bus-hit.me",
+ // "teddit.sethforprivacy.com"
+ ];
+
+ top.location.hostname = instances[Math.floor(Math.random()*instances.length)];
+})();
diff --git a/.config/qutebrowser/greasemonkey/code.js b/.config/qutebrowser/greasemonkey/code.js
deleted file mode 120000
index bcbc022..0000000
--- a/.config/qutebrowser/greasemonkey/code.js
+++ /dev/null
@@ -1 +0,0 @@
-/home/adam/.config/qutebrowser/greasemonkey-available/code.js \ No newline at end of file
diff --git a/.config/qutebrowser/greasemonkey/dumb.js b/.config/qutebrowser/greasemonkey/dumb.js
deleted file mode 120000
index 38fa4e5..0000000
--- a/.config/qutebrowser/greasemonkey/dumb.js
+++ /dev/null
@@ -1 +0,0 @@
-/home/adam/.config/qutebrowser/greasemonkey-available/dumb.js \ No newline at end of file
diff --git a/.config/qutebrowser/greasemonkey/invidious.js b/.config/qutebrowser/greasemonkey/invidious.js
deleted file mode 120000
index 0c4b1a3..0000000
--- a/.config/qutebrowser/greasemonkey/invidious.js
+++ /dev/null
@@ -1 +0,0 @@
-/home/adam/.config/qutebrowser/greasemonkey-available/invidious.js \ No newline at end of file
diff --git a/.config/qutebrowser/greasemonkey/nitter.js b/.config/qutebrowser/greasemonkey/nitter.js
deleted file mode 120000
index 6afba98..0000000
--- a/.config/qutebrowser/greasemonkey/nitter.js
+++ /dev/null
@@ -1 +0,0 @@
-/home/adam/.config/qutebrowser/greasemonkey-available/nitter.js \ No newline at end of file
diff --git a/.config/qutebrowser/greasemonkey/rimgo.js b/.config/qutebrowser/greasemonkey/rimgo.js
deleted file mode 120000
index d9dfe71..0000000
--- a/.config/qutebrowser/greasemonkey/rimgo.js
+++ /dev/null
@@ -1 +0,0 @@
-/home/adam/.config/qutebrowser/greasemonkey-available/rimgo.js \ No newline at end of file
diff --git a/.config/qutebrowser/greasemonkey/teddit.js b/.config/qutebrowser/greasemonkey/teddit.js
deleted file mode 120000
index 9956c1b..0000000
--- a/.config/qutebrowser/greasemonkey/teddit.js
+++ /dev/null
@@ -1 +0,0 @@
-/home/adam/.config/qutebrowser/greasemonkey-available/teddit.js \ No newline at end of file