Redirect to Invidious

Redirects YouTube videos to an Invidious instance.

目前為 2024-03-08 提交的版本,檢視 最新版本

作者
Kugland
評價
0 0 0
版本
0.3.0
建立日期
2023-10-21
更新日期
2024-03-08
尺寸
7.6 KB
授權條款
MIT
腳本執行於

Invidious Redirect

Greasy Fork Version Greasy Fork Downloads Greasy Fork Rating Greasy Fork License

This userscript redirects YouTube videos to an Invidious instance.

GitHub page: https://github.com/kugland/invidious-redirect

Greasy Fork page: https://greasyfork.org/scripts/477967-redirect-to-invidious

Usage

To use this script, you'll need a userscript manager like Tampermonkey or Greasemonkey. You can install it from its page at GreasyFork, or by copying the contents of invidious-redirect.js into a new userscript.

Once the script is installed, it will automatically redirect YouTube videos to your Invidious instance when you click on a YouTube link. By default, the script is configured to redirect to https://yewtu.be, but you can change this by clicking on the Invidious icon at the bottom right corner of YouTube main page.

Using a custom Invidious instance

I assume that if you are going to use a custom Invidious instance, you are a so-called "power user", so just open the dev console and type:

localStorage.setItem('invidious-redirect-instance', 'http://127.0.0.1:8000');

Replacing, naturally, your custom Invidious instance URL.

License

This script is released under the MIT License. See the LICENSE file for details.