From aa14ee0d1bf0c8f701e567558fcc0cd5fbfe0c95 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Sat, 11 Mar 2023 16:22:21 +0100 Subject: qutebrowser: added userscripts Includes DarkReader (unofficial) and a few redirects to minimal, private front-ends. --- .config/qutebrowser/greasemonkey/code.js | 18 ++++++++++++++ .../greasemonkey/disabled/darkreader.js | 29 ++++++++++++++++++++++ .config/qutebrowser/greasemonkey/dumb.js | 19 ++++++++++++++ .config/qutebrowser/greasemonkey/invidious.js | 13 ++++++++++ .config/qutebrowser/greasemonkey/nitter.js | 15 +++++++++++ .config/qutebrowser/greasemonkey/rimgo.js | 16 ++++++++++++ .config/qutebrowser/greasemonkey/teddit.js | 26 +++++++++++++++++++ 7 files changed, 136 insertions(+) create mode 100644 .config/qutebrowser/greasemonkey/code.js create mode 100644 .config/qutebrowser/greasemonkey/disabled/darkreader.js create mode 100644 .config/qutebrowser/greasemonkey/dumb.js create mode 100644 .config/qutebrowser/greasemonkey/invidious.js create mode 100644 .config/qutebrowser/greasemonkey/nitter.js create mode 100644 .config/qutebrowser/greasemonkey/rimgo.js create mode 100644 .config/qutebrowser/greasemonkey/teddit.js diff --git a/.config/qutebrowser/greasemonkey/code.js b/.config/qutebrowser/greasemonkey/code.js new file mode 100644 index 0000000..d28a85f --- /dev/null +++ b/.config/qutebrowser/greasemonkey/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/disabled/darkreader.js b/.config/qutebrowser/greasemonkey/disabled/darkreader.js new file mode 100644 index 0000000..dccd3f0 --- /dev/null +++ b/.config/qutebrowser/greasemonkey/disabled/darkreader.js @@ -0,0 +1,29 @@ +// ==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 *://search.adast.xyz/* +// @exclude *://translate.bus-hit.me/* +// @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/dumb.js b/.config/qutebrowser/greasemonkey/dumb.js new file mode 100644 index 0000000..18507ea --- /dev/null +++ b/.config/qutebrowser/greasemonkey/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/invidious.js b/.config/qutebrowser/greasemonkey/invidious.js new file mode 100644 index 0000000..023ac7d --- /dev/null +++ b/.config/qutebrowser/greasemonkey/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 = "yewtu.be"; +})(); diff --git a/.config/qutebrowser/greasemonkey/nitter.js b/.config/qutebrowser/greasemonkey/nitter.js new file mode 100644 index 0000000..40e99b9 --- /dev/null +++ b/.config/qutebrowser/greasemonkey/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/rimgo.js b/.config/qutebrowser/greasemonkey/rimgo.js new file mode 100644 index 0000000..1f65f83 --- /dev/null +++ b/.config/qutebrowser/greasemonkey/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/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)]; +})(); -- cgit v1.2.3-70-g09d2