I’m writing a browser extension to intercept all the script tags on the page when it’s loaded, but before they execute. To be clear, I’m not looking to block the scripts entirely; I just want to intercept and analyze/modify them before they’re run.
Is there a way to do this?
I’m aware of
onbeforescriptexecute for Firefox, but I’m hoping for something cross-browser…