Provides a somewhat easy way to filter/remove videos on the recommended page on youtube, using their own events instead of using a mutation observer
Filter out videos from the youtube frontpage based on some user provided conditions.
Edit the code to your liking after the comment tag saying // Edit these to your liking
Here is some examples
// Edit these to your likings
// Must be valid CSS
const HideCss = 'display: none !important;';
// Hide videos based on the uploader, case sensitive
const HiddenUploaders = ['HasanAbi', 'Hasan Piker', 'IShowSpeed', 'MrBeast', 'Kai Cenat'];
// Hide videos containing some words in their title, case insensitive
const HiddenTitleSubstrings = ['hasan','hasanabi','greta','thunberg','palestine','gaza','israel','hamas'];
// Hide videos you have watched fully
const HideWatchedVideos = false;
// Videos with less than this amount will be hidden, -1 disables this feature
const HiddenViewCountThreshhold = -1;
Perhaps a mutation observer should be used also if youtube changes its functionality etc