Accessing images before their display

Posted by azerty_04@reddit | learnprogramming | View on Reddit | 3 comments

Hello. I'm trying to create a simple browser extension using HTML and Python code, which edits the pictures before they're displayed, but I can't figure out how to actually access them before they load.

Any ideas as to how to do this?