Created
July 19, 2017 21:50
-
-
Save adamcjoiner/a1e1db85329f10f6f7799f6add4395ee to your computer and use it in GitHub Desktop.
Inject remote Javascript file into currently loaded page via browser's location bar
This file contains hidden or 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
| javascript: javascript: (function() { | |
| var s = 'https://nytimes.github.io/svg-crowbar/svg-crowbar.js'; | |
| var e = document.createElement('script'); | |
| e.setAttribute('src', s); | |
| e.setAttribute('class', 'svg-crowbar'); | |
| document.body.appendChild(e); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment