Skip to content

Instantly share code, notes, and snippets.

@devpuppy
Last active August 29, 2015 14:20
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 devpuppy/56301d3ff6156a0cbdd8 to your computer and use it in GitHub Desktop.
Save devpuppy/56301d3ff6156a0cbdd8 to your computer and use it in GitHub Desktop.
eval gist
alert(window.location.pathname);
<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