From d0ba640f674c18a9ae15aec23e80aeb9b6e4af71 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Sun, 30 Apr 2023 21:29:16 +0200 Subject: qutebrowser: moved greasemonkey scripts Intended usage is to symlink available scripts to .config/qutebrowser/greasemonkey/ (like nginx sites) --- .config/qutebrowser/greasemonkey-available/code.js | 18 +++++++++++ .../greasemonkey-available/darkreader.js | 36 ++++++++++++++++++++++ .config/qutebrowser/greasemonkey-available/dumb.js | 19 ++++++++++++ .../greasemonkey-available/invidious.js | 13 ++++++++ .../qutebrowser/greasemonkey-available/nitter.js | 15 +++++++++ .../qutebrowser/greasemonkey-available/rimgo.js | 16 ++++++++++ .../qutebrowser/greasemonkey-available/teddit.js | 22 +++++++++++++ .config/qutebrowser/greasemonkey/code.js | 1 - .config/qutebrowser/greasemonkey/dumb.js | 1 - .config/qutebrowser/greasemonkey/invidious.js | 1 - .config/qutebrowser/greasemonkey/nitter.js | 1 - .config/qutebrowser/greasemonkey/rimgo.js | 1 - .config/qutebrowser/greasemonkey/teddit.js | 1 - 13 files changed, 139 insertions(+), 6 deletions(-) create mode 100644 .config/qutebrowser/greasemonkey-available/code.js create mode 100644 .config/qutebrowser/greasemonkey-available/darkreader.js create mode 100644 .config/qutebrowser/greasemonkey-available/dumb.js create mode 100644 .config/qutebrowser/greasemonkey-available/invidious.js create mode 100644 .config/qutebrowser/greasemonkey-available/nitter.js create mode 100644 .config/qutebrowser/greasemonkey-available/rimgo.js create mode 100644 .config/qutebrowser/greasemonkey-available/teddit.js delete mode 120000 .config/qutebrowser/greasemonkey/code.js delete mode 120000 .config/qutebrowser/greasemonkey/dumb.js delete mode 120000 .config/qutebrowser/greasemonkey/invidious.js delete mode 120000 .config/qutebrowser/greasemonkey/nitter.js delete mode 120000 .config/qutebrowser/greasemonkey/rimgo.js delete mode 120000 .config/qutebrowser/greasemonkey/teddit.js 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 -- cgit v1.2.3-70-g09d2