Created
May 1, 2015 06:18
-
-
Save matthewmueller/4f933aa738302bbae70f to your computer and use it in GitHub Desktop.
Testing injection mad science
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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