title: child.parentNode.removeChild(child) keeps giving a TypeError: Cannot read property 'removeChild' of undefined
body: <p>I'm new to JS and for an assignment I have to remove a div from a facebook post. I'm using </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var el = document.getElementsByClassName("someclass");</code></pre>
  </div>
  </div>
  </p>
  
  <p>to find the div, since FB doesn't use ID tags. I can get a value if i run the var but its not working with removeChild for some reason.</p>