summaryrefslogtreecommitdiff
path: root/.config/qutebrowser/userscripts/youtube-to-invidious.js
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2021-10-01 20:13:13 -0400
committerluxagraf <sng@luxagraf.net>2021-10-01 20:13:13 -0400
commit48cc6cecb880712e66108d6d9f0f93a04a323a09 (patch)
treeacc70bd666445e2580b3e2e296367882f46bc111 /.config/qutebrowser/userscripts/youtube-to-invidious.js
parentbf34a8a8492c0839a866d2b1739989cfc412e144 (diff)
updated dotfiles to latest in sway setup
Diffstat (limited to '.config/qutebrowser/userscripts/youtube-to-invidious.js')
-rw-r--r--.config/qutebrowser/userscripts/youtube-to-invidious.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/qutebrowser/userscripts/youtube-to-invidious.js b/.config/qutebrowser/userscripts/youtube-to-invidious.js
new file mode 100644
index 0000000..b51c506
--- /dev/null
+++ b/.config/qutebrowser/userscripts/youtube-to-invidious.js
@@ -0,0 +1,11 @@
+// ==UserScript==
+// @name YouTube to Invidious redirector
+// @namespace lxf userscripts
+// @match http://youtube.com/*
+// @match https://youtube.com/*
+// @match http://www.youtube.com/*
+// @match https://www.youtube.com/*
+// @run-at document-start
+// ==/UserScript==
+
+location.href=location.href.replace("www.youtube.com","invidious.fdn.fr");