Skip to content

Conversation

@theosavv
Copy link

@theosavv theosavv commented Nov 11, 2025

So what has been done basically is I created the file channel-blocker.js . What this file does is statically set allowed channels ( eg i have in the file const allowedChannels = ["/@pantelisstavroulakis5456"]; ) . When we run, we can see on the main feed videos only of the allowed channels.
From here many things have to be done for this feature to realistically work.

  • Remove Short sections and other slots if there are none of the allowed channels ( because right now those sections are shown anyway but empty)
  • Ensure that the block mode follows the user everywhere while navigating on Youtube.
  • Fetching channels from the user's subscription list
  • Necessary UI element to enable the 'block mode'
  • UI Filter enabling the user to select specific channels from the subscription list to only show them.

@ImprovedTube
Copy link
Member

hi and thank you so much @theosavv @firetdev

what about? https://github.com/code-charity/youtube/blob/master/js%26css/web-accessible/www.youtube.com/blocklist.js
afaik it still works, but the button to block a channel meant to appear on channels pages disappeared (as of youtube changes.) And it should be available elsewhere too, with right click or so.

@ImprovedTube
Copy link
Member

if we can have the performant content filtering, there is a lot to come, such as editorial / automated blocklists.
#1451 & https://github.com/code-charity/youtube/issues?q=state%3Aopen%20label%3A%22Filtering%20%26%20Discovery%20(of%20Content)

@theosavv
Copy link
Author

Hello and thanks for the feedback! What I had in mind when looking at the issue was something slightly different. Like an isolation mode where the user should only be exposed to content of preference ( makes sense that this content should be subscribed only channels or a selection of those channels) helping with distractions as @Vitthal-Goyal mentioned. I understand the concept of content filtering, but to me they seem two different features for different circumstances. What are your thoughts on this???, I d love to hear!

@Vitthal-Goyal
Copy link

@theosavv Thankyou. Yes that is exactly what I had in mind

Blocking particular channels (feature already present) and Whitelisting only some (request) are two different things, #1451 is not at all relevent to the request @ImprovedTube

@ImprovedTube
Copy link
Member

This future set of features is content-filtering: blocking of some of the videos and channels / lists, keywords or regex and youtube category. All of which equally removes some of the videos to spare the user from seeing them require the detail you listed as check-boxes. Some of which might be implemented already. Instead of developing these features in parallel, we can combine their functions into a complete filtering function (modular structure to be re-purosed in various ways. And focus on improving that.)

Many people will want to use more filters combined, in order. Typically:

  1. Block category:Gaming, duration:<30s , duration:>5h,
  2. Except allow list:subscriptions & category:Education.
  3. Except always block: age-restricted videos and category:Entertainment

( https://github.com/MarcGuiselin/youtube-refined did some other rule editing for youtube before). #3351 can have optional specific stand-alone synonym names / tags (distraction free), to include user who won't watch or customize rules "under the hood" (Yet of course it fits the scheme 1. Block everything, 2. except subscriptions).

@ImprovedTube
Copy link
Member

hi and thank you again! @theosavv @firetdev @Vitthal-Goyal
our features are not enabled by default.
to merge this, it needs a toggle to enable or disable in our menu files

@theosavv
Copy link
Author

theosavv commented Dec 7, 2025

hi and thank you again! @theosavv @firetdev @Vitthal-Goyal our features are not enabled by default. to merge this, it needs a toggle to enable or disable in our menu files

Hi again!! Of course i ll work on it and keep you informed in the next days!

…t allowed channels from the user's subscription list
@theosavv
Copy link
Author

theosavv commented Dec 7, 2025

Ouff guys, its been a crazy day, but i added a toggle button and also a list with user's subscriptions so that he is able to allow specific channels, the content of which may only appear on the home screen. I hope you like it. I ll also provide a screenshot and anyone interested can review the changes, it would be greatly appreciated !
Screenshot 2025-12-07 235802

@theosavv theosavv requested a review from firetdev December 7, 2025 22:29
@theosavv theosavv marked this pull request as ready for review December 7, 2025 22:30
@theosavv
Copy link
Author

theosavv commented Dec 8, 2025

Hello again @Vitthal-Goyal! I am happy to inform you that I continued with the implementation of the feature you asked for, and i would greatly appreciate your opinion on it! You can see it on the screen shot above, and try it and review it on your computer! I hope it is close to what you initially had in mind!

@Vitthal-Goyal
Copy link

Vitthal-Goyal commented Dec 8, 2025

Hello again @Vitthal-Goyal! I am happy to inform you that I continued with the implementation of the feature you asked for, and i would greatly appreciate your opinion on it! You can see it on the screen shot above, and try it and review it on your computer! I hope it is close to what you initially had in mind!

You're great @theosavv 🙌 It's exactly what I hoped for and it's GREAT!!!! This is the superb productivity hack, You're the BEST man, thank you so so much, you're the reason I love the GitHub and the open source community so much. Thanks a lot. 💯💯🙌🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants