Created
October 2, 2015 06:47
-
-
Save tribela/62f05a90d1aac71001b2 to your computer and use it in GitHub Desktop.
facebook autopoke
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(){ | |
var poked=false; | |
var lst=document.querySelectorAll('.selected[ajaxify^="/pokes/"]:not([data-gt])'); | |
for (var i=0; i<lst.length; i+=1) { | |
lst[i].click(); | |
} | |
if (lst.length) { | |
//alert("POKED"); | |
window.setTimeout(auto_poke,200); | |
} else { | |
window.setTimeout(auto_poke, 2000); | |
} | |
} | |
//auto_poke(); | |
window.setTimeout(auto_poke,3000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment