Greasemonkey script to remove HTML between specific comments?
问题 In order to block some JavaScript that I don't want to execute when I load a page, I would like to have a Greasemonkey script that deletes everything between two HTML comment tags. For example: <!-- sub script --> Lines containing script elements to be removed <!-- end sub script --> I have previously tried removing the script elements using a sample script that was suggested to me, but it isn't working as expected. That script was this: var script = document.querySelectorAll('script[src*=