Created
May 6, 2014 14:27
-
-
Save tribela/23061f4eee88a9bcd024 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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