summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/greasemonkey-available/invidious.js
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 /.config/qutebrowser/greasemonkey-available/invidious.js
parentb7b0887f88ffa4dd63a85aaa27d305db18555675 (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/invidious.js')
-rw-r--r--.config/qutebrowser/greasemonkey-available/invidious.js13
1 files changed, 13 insertions, 0 deletions
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";
+})();