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 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .config/qutebrowser/greasemonkey-available/code.js (limited to '.config/qutebrowser/greasemonkey-available/code.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)]; +})(); -- cgit v1.2.3-70-g09d2