Skip to content

Instantly share code, notes, and snippets.

@tribela
Created May 6, 2014 14:27
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 tribela/23061f4eee88a9bcd024 to your computer and use it in GitHub Desktop.
Save tribela/23061f4eee88a9bcd024 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Facebook autopoke
// @namespace Kjwon15
// @description Facebook auto revenge poke
// @include http://*.facebook.com/pokes*
// @include https://*.facebook.com/pokes*
// ==/UserScript==
auto_poke=function(){
if (document.location.pathname.startsWith('/pokes') === false) {
return;
}
var poked=false;
var lst = document.querySelectorAll('a.selected[ajaxify^="/pokes/"]:not([data-gt])');
for(i=0;i<lst.length; i++){
lst[i].click();
}
if(poked) {
//alert("POKED");
window.setTimeout(auto_poke, 1000);
}else{
window.setTimeout(auto_poke, 3000);
}
}
//auto_poke();
window.setTimeout(auto_poke,5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment