How to disable specific java script
maybe you can add the link of line 6 onto ublock Orign or Adblock or other blocker if you has some feature of the link address. ScriptManager inject the script after the DOMContentLoaded
event, so it too late to block a script on the html dom if you use a script from scriptManager
for example, you can make the usage of this one prefs.js: user_pref("capability.policy.policynames", "killfunction"); user_pref("capability.policy.killfunction.open", "noAccess"); user_pref("capability.policy.killfunction.XMLHttpRequest.open", "noAccess"); user_pref("capability.policy.killfunction.XMLHttpRequest.send", "noAccess"); user_pref("capability.policy.killfunction.sites", http://evilsite.org);
How to disable specific java script
Some site (html) contains the following code:
I need to do only one thing among 3: 1) OR Disable (delete\replace) array of commands in a whole block "script" 2) OR Delete EventListener (not using deleteEventListener because it doesn't work here) 3) OR Forbid geting script from URL in line 6 (Not desirable solution, because it may has no effect)
(Attachment: File with code that given before but with spaces and tabs to better viewing)