您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects YouTube videos to an Invidious instance.
当前为
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
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.
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.
This script is released under the MIT License. See the LICENSE file for details.