Greasemonkey or Tampermonkey in Chrome allows this ... but they need a script that you want to run
for example, if a certain type of overlay ad is always placed on a certain site and you can find or write a script to kill it, you can enter this source in Tampermonkey and it will be launched on every page load globally or on any site / domain / wildcard the expression you designated
alternatively, if you want to block certain scripts and want to automate the process, Notscript for chrome will show you every script that was run when you visited the site and let you determine what you want to allow on subsequent visits to this site or on all sites, very cool .. this way you don't have to write or find a script to block behavior that you don't like
as mentioned earlier, when you do this, you seriously resort to browser security, so be careful and just do not configure the old script if you cannot read them or trust the source ....
source share