With Greasemonkey, I'm looking to block images and scripts from being downloaded.
From an existing post I learnt that it is possible to use the document-start directive to jump in before scripts execute.
Is it possible for me to use window.addEventListener
on a specific event that allows me to find the src = xxx.js
and xxx.jpg
tags and either remove these src=
tags before downloading, or to block the download?
Note: Here is a list of events that Mozilla supports.
AMENDED: I would like to replace the blocked downloads with my own scripts or images.