Skip to content

Instantly share code, notes, and snippets.

@satyr
Created May 31, 2009 04:35
Show Gist options
  • Save satyr/120760 to your computer and use it in GitHub Desktop.
Save satyr/120760 to your computer and use it in GitHub Desktop.
CmdUtils.CreateCommand({
name: "preview-browser-security-check",
preview: function(pblock) {
pblock.ownerDocument.defaultView.location = 'javascript:0,'+ function(){
document.write('<p style="color:#eee;background:#000">'+
top.Application);
document.close();
} +'()';
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment