add invidious proxy script
This commit is contained in:
parent
b1524a64c7
commit
72e9c303d0
1 changed files with 11 additions and 0 deletions
11
.config/qutebrowser/greasemonkey/inv.js
Normal file
11
.config/qutebrowser/greasemonkey/inv.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
// ==UserScript==
|
||||||
|
// @name Invidious Proxy automatically
|
||||||
|
// @match *://*.inv.cochrun.xyv/watch?v=*
|
||||||
|
// @run-at document-start
|
||||||
|
// @grant none
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
|
||||||
|
if (!(/[?&]local=/).test(location.search) && !(/[?&]quality=dash/).test(location.search)) {
|
||||||
|
location.search += (location.search ? "&" : "?") + "local=true";
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue