When you block ads on YouTube, the ads are deleted. This has the problem of not giving creators money, forcing you to actually spend $10/mo or whatever the average Patreon subscription is. What if there was an option for an ad to play in the background while a black rectangle covers the screen while temporarily muting the browser tab? (Since the ad still plays in the background, the creator still gets money, allowing you to be a freeloader) edit: peertube has no ads
Have you perhaps considered blocking the screen with a big piece of cardboard? No coding required.
I use an app on Windows called ontopreplica. The original purpose of it is to draw another window on top of other windows but I legit use it to block random stuff I don’t want to see.