Skip to content

Instantly share code, notes, and snippets.

@ancat
Created June 3, 2012 19:08
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 ancat/2864666 to your computer and use it in GitHub Desktop.
Save ancat/2864666 to your computer and use it in GitHub Desktop.
<script>
window.addEventListener(
'message',
function(e) {
window.top.postMessage(
function() {var x=new XMLHttpRequest();x.open('GET',e.data,false);x.send();return x.responseText}(), '*'
)
},
false);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment