To whitelist YouTube channels in uBlock Origin
当前为
Source: https://github.com/gorhill/uBlock/wiki/How-to-whitelist-a-web-site#a-youtube-channel
https://www.youtube.com/user/[CHANNEL_OWNER'S_NAME].https://www.youtube.com/user/jacksfilms*youtube.com/*user=[CHANNEL_OWNER'S_NAME]*.[CHANNEL_OWNER'S_NAME] with the channel owner's name you extracted earlier.*youtube.com/*user=jacksfilms*.Optionally, 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:
uBO: YT channel whitelist directive (change as you wish)Bookmarklet URL/location:
javascript:(function() {"use strict";var e = document.querySelector('[href*="/user/"]');if (null !== e) {var t = e.getAttribute("href") || "",r = t.match(/\/user\/([^\/?]+)/);if (null !== r) return void alert("uBO whitelist directive for this channel:\nyoutube.com/*user=" + r[1] + "*")}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.