Skip to content

Instantly share code, notes, and snippets.

@matijs
Created August 16, 2017 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matijs/004fa7e33db9fe9d42775519aca425e5 to your computer and use it in GitHub Desktop.
Save matijs/004fa7e33db9fe9d42775519aca425e5 to your computer and use it in GitHub Desktop.
(function(doc, body) {
const main = doc.querySelector('main').parentNode.removeChild(doc.querySelector('main'));
while (body.firstChild) body.removeChild(body.firstChild);
body.appendChild(main)
}(document, document.body));
javascript:void(function(doc,body){const main=doc.querySelector('main').parentNode.removeChild(doc.querySelector('main'));while(body.firstChild)body.removeChild(body.firstChild);body.appendChild(main)}(document, document.body));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment