您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
To whitelist YouTube channels in uBlock Origin
Old version was out of date and no longer functional.
This is a 'fork' of https://gf.qytechs.cn/en/scripts/22308-youtube-whitelist-channels-in-ublock-origin based on https://gf.qytechs.cn/en/scripts/13226-youtube-whitelist-channels-in-ublock-origin with adaption from https://gf.qytechs.cn/en/forum/discussion/8985
Add the following bookmarklet to your toolbar: it will create a whitelist directive for you to add to uBlock Origin for the channel owner of the current Youtube page:
Bookmarklet URL/location:
javascript:(function() {"use strict";var e = document.querySelector('[id^="owner-name"] a');if (null !== e) {var t = e.getAttribute("href") || "";if ('' !== t) return void prompt("uBO whitelist directive for this channel:", "youtube.com/*user=" + encodeURIComponent(t) + "*")}alert("No Youtube user name found on this page.")})();
Once you click this bookmarklet while on a Youtube page, it will extract the channel owner's name and create a valid directive to be pasted in the Whitelist pane of uBlock Origin if you want to whitelist the Youtube channel.
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址