youtube icon indicating copy to clipboard operation
youtube copied to clipboard

The Blocklist button doesn't work for me, let me edit manually (plus import/export)

Open cain-dev opened this issue 1 year ago • 8 comments

No need for too much explanation, it's an amazing feature, the one i use the most but the button almost never works, anything that youtube updates then it stop working, but at least it's blocking things just fine for me (yet).

My 2 cents to keep it working a little bit more? Make it field so i can manage it with a .txt file or something, import/export and stuff so i can manually put everything there to blocklist.

cain-dev avatar May 04 '24 04:05 cain-dev

hi @cain-dev thank you!

ImprovedTube avatar May 04 '24 14:05 ImprovedTube

I rewrote and fixed up blocklist https://github.com/code-charity/youtube/pull/2098 https://github.com/raszpl/YouTube-Extension/tree/BLOCKLIST in theory its ready to be merged, I just didnt get around to testing it too extensively.

raszpl avatar May 04 '24 21:05 raszpl

Is export/Import a possibility?

cain-dev avatar May 07 '24 17:05 cain-dev

No native support available, but this is how example (blocked content is some of my favorite, its just for a test) data looks like:

JSON.stringify(ImprovedTube.storage.blocklist)

{"channels":{"mustie1":{"preview":"https://yt3.googleusercontent.com/ytc/AIdro_lvexMnv3YQ3w6GC5tAJgH3rougPNODCB7BLMwTc99UWA=s900-c-k-c0x00ffffff-no-rj","title":"Mustie1"}},"videos":{"AEm-2giH_zw":{"title":"Flash photography used to be pretty wild"},"DTsQjiPlksA":{"title":"Old HVAC industry practices are holding us back and costing us money. But we can fix it."},"E3p_Cv32tEo":{"title":"The step-by-step, mechanical logic of old pinball machines"},"MFEHFsO-XSI":{"title":"Why Heat Pumps are Immensely Important Right Now"},"QvY6taoAeM8":{"title":"NAJWIĘKSZY FIAT LAT 70. #shorts #fiat #klasyk #fiat130"},"RSTNhvDGbYI":{"title":"Old-fashioned rice cookers are extremely clever"},"_hAuKtoRxJI":{"title":"HVAC professionals aren't sizing equipment appropriately [condensed version]"}}}

raszpl avatar May 07 '24 18:05 raszpl

block button no longer appears anywhere onsite after this.

you dont see those ? video channel

raszpl avatar May 15 '24 00:05 raszpl

Uncaught TypeError: this.storage.blocklist is undefined blocklist /js&css/web-accessible/www.youtube.com/blocklist.js:61 ytElementsHandler /js&css/web-accessible/functions.js:44 childHandler /js&css/web-accessible/functions.js:10 childHandler /js&css/web-accessible/functions.js:14 childHandler /js&css/web-accessible/functions.js:14 childHandler /js&css/web-accessible/functions.js:14 observer /js&css/web-accessible/init.js:15 MutationCallback* /js&css/web-accessible/init.js:8

ImprovedTube avatar May 18 '24 06:05 ImprovedTube

Latest version of Brave (1.75.178), "Add to Blocklist" button is not visible (next to the Subscribe button) on a channel home page. The other button on hovering a specific video thumbnail does show up and it works. But ideally it would be more efficient to block those crap channels outright instead of one video at a time. Thanks for your awesome work!

CrazyCatGuy2 avatar Feb 21 '25 21:02 CrazyCatGuy2