Skip to content

Instantly share code, notes, and snippets.

@satyr
Created March 29, 2010 11:42
Show Gist options
  • Save satyr/347774 to your computer and use it in GitHub Desktop.
Save satyr/347774 to your computer and use it in GitHub Desktop.
<script>
function pr(){ document.writeln.apply(document, arguments) }
function go(code, end){
try{ var r = eval(code) } catch(e) { r = e }
pr(code, '\n\t', r);
end ? pr('') : go(code + ' = location +" "+ new Date', 1);
}
pr('<pre>');
go('localStorage._');
go('globalStorage[location.hostname]._');
go('document.cookie');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment