I've thought about this type of thing, and the first step would be to do this in the browser kind of like ublock cosmetic filtering. Most sites don't apply alt-text to their images, so filtering by the html does not work for images, for now. But, I'm too lazy to figure it out.