Skip to content

Instantly share code, notes, and snippets.

@justinoboyle
Last active December 12, 2015 03:34
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 justinoboyle/e78b8784c517cf9c4791 to your computer and use it in GitHub Desktop.
Save justinoboyle/e78b8784c517cf9c4791 to your computer and use it in GitHub Desktop.
javascript:e="your_url_here";t=function(){};d=document,b=d.childNodes;history.pushState("","",e);n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState){for(e=b.length-1;e>=0;)d.removeChild(b[e--]);d.write(n.responseText),t()}},n.open("GET",e,!0),n.send(null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment