0

I have an HTML website which returns some HTML like this:

<div id="content">Content ... 
  <div id="badscript">
   <script>badscript();</script> 
  </div> ...
</div>

With GreaseMonkey for Firefox is it possibile to prevent that badscript is executed?

pacionet
  • 183
  • 4
  • 15
  • Specifically the [answer by CertainPerformance](https://stackoverflow.com/a/59518023). – wOxxOm Apr 17 '20 at 10:40
  • It doesn't work because "To modify inline tags, you'll have to download a local copy of the page. (So if the page serves dynamic content through the HTML response, you'll either have to re-save and re-tweak the .html for your overrides to use the new content, or you'll have to go back to the MutationObserver method.)" – pacionet Apr 17 '20 at 10:52
  • No, that note is for the alternative method via overrides, you don't need that. – wOxxOm Apr 17 '20 at 11:03

0 Answers0