title: Greasemonkey script to remove <script> tag
body: <p>I want to remove a  tag in the very begining of the html file. That script redirects me to some other pages. I wrote a js and created a new userscript using grease monkey. </p>
  
  <pre><code>var scripts = document.getElementsByTagName('script');
  scripts[0].parentNode.removeChild (scripts[0]);
  </code></pre>
  
  <p>But this didn't worked. Since I'm new to grease monkey I don't know how to configure the script before executing that script tag. I tired adding @run-at document-start in the begining of the script. I cannot turn off the js since it contains a lot of ajax calls. So how this can be done with grease monkey? or is there any tools available to do the same?
  The script tag is as follows.</p>
  
  <pre><code> &lt;script&gt;alert('some text');location.href='new_url'&lt;/script&gt;
   &lt;!DOCTYPE html...&gt;
   &lt;html...
  </code></pre>