title: Removing <body> with a userscript
body: <p>I'm sorry, but I am not very good with programming. I am trying to fix this irritating bug on my school's website through a userscript. I have tested the RegEx on several pages, at least that works. I need to make the userscript remove the parts I don't want to see. This is a snippet from the source of the website, I have marked what needs to be removed with '//'.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  //&lt;html&gt;&lt;head&gt;
  //&lt;title&gt;404 Not Found&lt;/title&gt;
  //&lt;/head&gt;&lt;body&gt;
  //&lt;h1&gt;Not Found&lt;/h1&gt;
  //&lt;p&gt;The requested URL /get.php was not found on this server.&lt;/p&gt;
  //&lt;/body&gt;&lt;/html&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" &gt;
  &lt;head&gt;
  &lt;meta http-equiv="content-type" content="text/html; charset=utf-8" /&gt;
  &lt;meta name="robots" content="index, follow" /&gt;
  </code></pre>
  
  <p>This is my userscript that does not work. I know it reflects my skills as a programmer, please don't hate.</p>
  
  <pre><code>var REGEX = /&lt;HTML&gt;(.*?)([^\n]*?\n+?)+?&lt;\/BODY&gt;&lt;\/HTML&gt;/ig;
  document.body.innerHTML=document.body.innerHTML.replace(REGEX, '');
  </code></pre>