Greasy Fork is available in English.

YouTube - whitelist channels in uBlock Origin

To whitelist YouTube channels in uBlock Origin

< Feedback on YouTube - whitelist channels in uBlock Origin

Review: OK - script works, but has bugs

random characters instead of channel names

Hi there,

So uh, for whatever reason channels are not being reflected properly here since an update.

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:45.0) Gecko/20100101 Firefox/45.0. Greasemonkey 3.7

watch?v=68RYM_NxZhs is turned into watch?v=68RYM_NxZhs&user=UCHcAz7laqwXf6SBnrH2vOWQ rather than the actual channel name which is indiemuzikvideos. Previous functionality produced a result like this: watch?v=68RYM_NxZhs&user=indiemuzikvideos

I also experience the same issue with "An error occurred during validation." on channel pages.

§
Posted: 24. 04. 2016

I believe thats because youtube has changed channel names into strings like that, however I see the error thing and i'm not sure that the script is working right now, because its not adding anything to my ublock whitelist and i'm not getting any ads for the channels that I want to support.

§
Posted: 02. 05. 2016

The problem is that Youtube has changed (perhaps temporarily) what the channelId, that is parsed by the script, contains. Don't know if gorhill (author) has already noticed this or hasn't had time to look at it.

I've made a fix that uses a different query for parsing the user name. Works fine at the moment. Code is in the following pastebin, with a short instruction:

http://pastebin.com/yQCfWjWe

To apply the fix, first open the script -- in Tampermonkey, open the dashboard and click on the script name. Then, in function exposeUserInUrl, just replace (or comment out) the part between (and including) the querySelector call and the line where channelId is set.

Post reply

Sign in to post a reply.