youtube icon indicating copy to clipboard operation
youtube copied to clipboard

Channel Block list visual bug🐞

Open 0xDEADC0DER opened this issue 1 month ago • 9 comments

Concise Description

With the channel block list enabled, I expect it to completely hide the channel videos in my search results. But its partially hidden and looks awkward when scrolling. Attached a video demonstrating the issue

https://github.com/user-attachments/assets/16f214f1-9647-4064-b3ae-d68c314dc2ca

Browser/s

Brave

Other Browser:

No response

'Steps to reproduce' - Which of our features is required for the bug to happen?

Enable the block list feature and add a channel to block list.

Since when?

idk, i decided to enable it and noticing now

Does the bug still happen when you log out of YouTube?

Yes

..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)

No response

Are any errors or related log-messages shown in the Browser-Console? (F12)

None

Tested as the only active extension? (incognito mode or another browser users):

Yes

Expected preferred behavior:

Adding a channel to block list completely removes its video ui (elements? whatever) from search results.

ImprovedTube Version

4.2081

Your Settings (From the Extension's ⋮-Hamburger menu > Settings > Backup & reset > Export settings)

{ "add_scroll_to_top": true, "analyzer_activation": true, "blocklist": { "channels": { "MrBeast": { "preview": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s160-c-k-c0x00ffffff-no-rj", "title": "MrBeast", "when": 17919162 } }, "videos": {} }, "blocklist_activate": true, "blocklist_dislike_trigger": true, "channel_default_tab": "/videos", "disable_thumbnail_playback": true, "hide_voice_search_button": true, "lastDarkTheme": "dark", "lastLightTheme": "default", "open_new_tab": true, "player_auto_continue_watching": false, "prevent_shorts_autoloop": true, "redirect_shorts_to_watch": true, "related_videos": "hidden", "remove_member_only": false, "remove_related_search_results": true, "remove_shorts_reel_search_results": true, "theme": "dark" }

Your YouTube-Document

No response

OS / Device:

Fedora 44 on a Laptop

0xDEADC0DER avatar Oct 14 '26 08:10 0xDEADC0DER

Hi! I'd like to work on this. I'm investigating how the channel blocklist hides videos in search results and will open a PR once I have a fix.

felipetmasiero avatar Oct 14 '26 20:10 felipetmasiero

I looked into this: blocked videos are intentionally collapsed and dimmed (opacity .15, max-height 120px in search) and expand on hover, so you can unblock them. That's why they look partially hidden and jump around while scrolling.

My plan is to add a new blocklist option, "Hide blocked videos completely" (off by default), that uses display: none instead of collapsing. The current behavior stays the default. Let me know if you'd prefer a different approach!

felipetmasiero avatar Oct 14 '26 21:10 felipetmasiero

3. I looked into this: blocked videos are intentionally collapsed and dimmed (opacity .15, max-height 120px in search) and expand on hover, so you can unblock them. That's why they look partially hidden and jump around while scrolling. My plan is to add a new blocklist option, "Hide blocked videos completely" (off by default), that uses display: none instead of collapsing. The current behavior stays the default. Let me know if you'd prefer a different approach!

lgtm looking forward to this

0xDEADC0DER avatar Oct 14 '26 21:10 0xDEADC0DER

Thanks! The PR is up: #4392. Feel free to test it if you'd like.

felipetmasiero avatar Oct 14 '26 23:10 felipetmasiero

Thanks! The PR is up: #4392. Feel free to test it if you'd like.

~I feel bad to trouble you like this coz i dont have access to a pc rn.~ nvm i have a pc access now and installed nodejs and decided to fix it myself but i am kinda lost where and what edit do i make im a computer science student learning C and Rust. web dev aint my thing cant find any meaningful architecture guides/dev guides any help?

But i still see some gap and a number of the hidden video. mind addressing that too?

673975310-6b11867f-2421-44ed-b5aa-dd508b2e9986.png

ive tried my best to mark it.

0xDEADC0DER avatar Oct 15 '26 03:10 0xDEADC0DER

Thanks for testing and for the screenshot! You're right: the video itself is hidden, but its parent "Latest from " shelf (and its "+N more" button) stays on the page, leaving a gap. I'll update #4392 to hide the whole shelf when every video in it is blocked.

About getting started: there's no build step for development. Clone the repo, open chrome://extensions, enable Developer mode, click "Load unpacked" and select the repo folder. After editing, hit ↻ on the extension and reload the YouTube tab. Rough layout:

  • menu/skeleton-parts/: the extension menu (each option is an object there)
  • _locales/en/messages.json: the menu's text strings
  • js&css/extension/: CSS and content scripts
  • js&css/web-accessible/: scripts that run inside the YouTube page

Every setting is mirrored as an it-<setting-name> attribute on <html>, so many features are just CSS rules keyed on that attribute. The diff of #4392 is a small example of all three pieces.

felipetmasiero avatar Oct 15 '26 14:10 felipetmasiero

Fixed in #4392: when every video in a search shelf (like "Latest from ") is blocked, the whole shelf is now hidden, including its title, the empty space and the "+N more" button. Shelves that mix blocked and unblocked channels stay visible, and only the blocked videos inside them are hidden.

Note: the channel card and channel playlists in search results are not videos, so the blocklist doesn't cover them (that was already the case before this PR).

Image

felipetmasiero avatar Oct 15 '26 15:10 felipetmasiero

OMG THIS IS PERFECT I also checked the commits this was easier than i thought 😅 Thanks for the guidelines will try to contribute in future 🙂

PS: While the devs take their time to merge this Ill patch the extension myself and use a dev build of it

0xDEADC0DER avatar Oct 15 '26 16:10 0xDEADC0DER

Appreciate it man, glad I could help!

felipetmasiero avatar Oct 15 '26 20:10 felipetmasiero