How can I intercept downloading of media on a web page (as opposed to something like a user clicking on a "download" button for example)? For example, for if I want to show the Google home page but with a different background image.
Is there an event for that? (I couldn't find one.) Or some other way?