I think I finally made my "dream" YouTube video blocker. Or at least, a prototype of it.
=> userscript, so no browser lock-in (also shouldn't depend on any particular userscript loader)
=> A LOT more control over what's being blocked as each "filter" is just a function over the video data
=> (Currently) less than a 100 lines of code
The main reason I actually spent the effort for this could be easily summed up by this 2 line filter:
( vid.length <= 5*60 // 5 minutes && vid.views >= 250_000);
Working on making this thing a lil' more robust and it turns out YouTube uses fetch() everywhere EXCEPT on video sidebar recommendations. I guess I'll override XHR too.
Personal server. Totally overkill but ok.