Whitelist YouTube channels ads

Whitelist YouTube channels in uBlock Origin

< 脚本 Whitelist YouTube channels ads 的反馈

提问 / 留言

§
发布于:2023-11-23
编辑于:2023-11-23

To make it work with the latest updates, just need to make a couple tweaks:

  • Replace all uses of location.search with location.hash, because YouTube seems to clear unrecognized query parameters now
  • Replace the matches regex on line 35 with /(?:[#&])(user=(?:[^&]+|$))/ to account for using the hash rather than query
  • Replace the linkmatch regex on line 28 with /\/(user\/|channel\/|@)(.+)|/ to support the new @ usernames
Rakambda作者
§
发布于:2023-11-23

Didn't tested it but implemented this changes so everyone can have them

Rakambda作者
§
发布于:2023-11-23

Thanks :)

发布留言

登录以发布留言。