diff options
author | Adam Stück <adam@adast.xyz> | 2023-04-30 21:29:16 +0200 |
---|---|---|
committer | Adam Stück <adam@adast.xyz> | 2023-04-30 21:59:58 +0200 |
commit | d0ba640f674c18a9ae15aec23e80aeb9b6e4af71 (patch) | |
tree | 93d49d28be83be36ef13a65b3d2720ed75ae3345 /.config/qutebrowser/greasemonkey-available/code.js | |
parent | b7b0887f88ffa4dd63a85aaa27d305db18555675 (diff) |
qutebrowser: moved greasemonkey scripts
Intended usage is to symlink available scripts to
.config/qutebrowser/greasemonkey/ (like nginx sites)
Diffstat (limited to '.config/qutebrowser/greasemonkey-available/code.js')
-rw-r--r-- | .config/qutebrowser/greasemonkey-available/code.js | 18 |
1 files changed, 18 insertions, 0 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)]; +})(); |