Block Youtube Users

Hide videos of blacklisted users/channels and comments

< Feedback on Block Youtube Users

Review: Good - script works

§
Posted: 04. 12. 2022

First, this script is very helpful. There is a feature that I would really like you to add to it though.


Feature Request:

Add a check box to automatically hide any video that uses non-Latin letters unless the channel is whitelisted.

There is a script for the search on this site (Greasy Fork) that does this.

The regex that they used is: /[^\p{Script=Latin}\p{Script=Common}\p{Script=Inherited}]/gu

Link to that script:

https://greasyfork.org/en/scripts/431584-greasy-fork

Link to Stack Overflow post discussing different ways to detect non-Latin characters with regex.

https://stackoverflow.com/a/15786657

Ideally this would check usernames/channel names, video titles, video descriptions, and anything else that is related to a video and is checkable for non-Latin characters.


Feature Enhancement:

This is much lower on my list of wants. I just think it would a good fit with the rest of your script.

There is another script that I use for YouTube, and I think you should merge into yours. It adds a feature when the mouse hovers over a video, it shows a couple of overlay buttons,

  • "Don't recommend channel"
  • "Not interested"
  • "Remove from 'Watch later'" (If the video is already in your 'Watch later' list.)

It would be useful if in addition to those, you could also add a video/channel to the blacklist in the same way.

The script is "YT: not interested in one click" and has not been updated in years, though it works without errors or issues.

https://greasyfork.org/en/scripts/396936-yt-not-interested-in-one-click

There could also be the option to remove all the buttons around the videos with something like this:

function removeBtnsWatchQueue ()
{
    var style = document.createElement( 'style' )
    style.textContent = 'ytd-toggle-button-renderer.style-scope.ytd-video-preview { display: none !important; }'
    document.documentElement.appendChild( style )
};

removeBtnsWatchQueue()

You could also have the option to remove all the buttons around the videos while keeping the overlay button to "Add to blacklist".

Post reply

Sign in to post a reply.