Skip to content

Instantly share code, notes, and snippets.

@matthewmueller
Created May 1, 2015 06:18
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 matthewmueller/4f933aa738302bbae70f to your computer and use it in GitHub Desktop.
Save matthewmueller/4f933aa738302bbae70f to your computer and use it in GitHub Desktop.
Testing injection mad science
var script = document.currentScript;
var sheet = script.getAttribute('sheet');
var el = document.createElement('div');
el.textContent = 'hi world!';
script.parentNode.replaceChild(el, script);
console.log('lol');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment