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()%7B%22use%20strict%22;var%20e=document.querySelector('link%5Bhref*=%22/user/%22%5D');if(null!==e)%7Bvar%20r=e.href.lastIndexOf(%22/%22);if(-1!==r)%7Bvar%20t=%22*youtube.com/*user=%22+e.href.slice(r+1)+%22*%22;return%20void%20alert(%22uBO%20whitelist%20directive%20for%20this%20channel:%5Cn%22+t)%7D%7Dalert(%22No%20Youtube%20user%20name%20found%20on%20this%20page.%22)%7D)();
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.