Skip to content

Instantly share code, notes, and snippets.

@kimdwkimdw
Created March 11, 2012 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimdwkimdw/2017134 to your computer and use it in GitHub Desktop.
Save kimdwkimdw/2017134 to your computer and use it in GitHub Desktop.
Auto "Poke Back" in Facebook
/*Try this on console in the "m.facebook.com/pokes" during you logged in*/
P=location.protocol;
a = document.createElement('script')
a.src=P+"//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"
document.body.appendChild(a);
(function ME() {
var jQuery=jQuery || undefined;
if(jQuery) {
setInterval(function () {
$.ajax(P+'//m.facebook.com/pokes').success(function(d){
$.ajax( $(d).find(".mfss .sec:first").attr('href') );
})
},1000*10)
} else {
setTimeout(ME,10)
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment