documentation/Always-use-"local"-to-proxy-video-through-the-server-without-creating-an-account.md
Guru 0365e07803
change redirect url in userscript (#136)
* change redirect url in script

* Apply needed changes

Co-authored-by: TheFrenchGhosty <47571719+TheFrenchGhosty@users.noreply.github.com>
2021-10-03 17:06:22 +00:00

1.0 KiB

title description published date tags editor dateCreated
Always-use-"local"-to-proxy-video-through-the-server-without-creating-an-account true 2021-05-23T16:58:12.539Z markdown 2021-01-28T20:38:58.736Z

Download ViolentMonkey for your Browser:
Firefox
Chrome and Chromium
Others

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==


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.