Last active
August 29, 2015 14:20
-
-
Save devpuppy/56301d3ff6156a0cbdd8 to your computer and use it in GitHub Desktop.
eval gist
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
alert(window.location.pathname); |
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
<html> | |
<body> | |
<script type="text/javascript"> | |
<!-- | |
function get(url) { | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', url, false); | |
xhr.send(); | |
return(xhr.responseText); | |
} | |
function run(url) { | |
eval(get(url)); | |
} | |
url = 'https://gist.githubusercontent.com/devpuppy/56301d3ff6156a0cbdd8/raw/hosted.js'; | |
run(url); | |
--> | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment