documentation/docs/proxy-videos.md

25 lines
859 B
Markdown
Raw Permalink Normal View History

# UserScript to always proxy video
2021-01-28 21:04:37 +00:00
Download ViolentMonkey for your Browser:
[Firefox](https://addons.mozilla.org/en-US/firefox/addon/violentmonkey/)
[Chrome and Chromium](https://chrome.google.com/webstore/detail/violentmonkey/jinjaccalgkegednnccohejagnlnfdag)
[Others](https://violentmonkey.github.io/get-it/)
2020-06-20 00:20:18 +00:00
Than add the following script in ViolentMonkey. It will always add `&local=true` to the end of the video URL.
```
// ==UserScript==
// @name Invidious Proxy automatically
// @match *://*.redirect.invidious.io/watch?v=*
// @run-at document-start
// @grant none
// ==/UserScript==
2019-07-30 18:31:27 +00:00
if (!(/[?&]local=/).test(location.search) && !(/[?&]quality=dash/).test(location.search)) {
location.search += (location.search ? "&" : "?") + "local=true";
}
```
You can also enable this by checking `Proxy videos?` in your preferences.