YouTube - whitelist channels in uBlock Origin

To whitelist YouTube channels in uBlock Origin

< 脚本YouTube - whitelist channels in uBlock Origin的反馈

提问/评论

§
发表于:2018-07-03
编辑于:2018-07-03

Can only whitelist with url strings

I can't seem to be able to whitelist channels with channel names, I seem to only be able to do it with channel url strings. eg. this works for me: youtube.com/*user=UCAxBpbVbSXT2wsCwZfrIIVg But this doesn't: youtube.com/*user=SecretAgentBob

In other words /channel/UCAxBpbVbSXT2wsCwZfrIIVg works, but user/SecretAgentBob doesn't work for me.

I've only modified lines 28 and 30 by replacing the id: var link = document.querySelector('[id="owner-name"] a[href^="/user/"]'); if ( link === null ) { link = document.querySelector('[id="owner-name"] a[href^="/channel/"]');

I'm not familiar with scripting, is there anything else I need to change?

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址