Last active
August 29, 2015 14:03
-
-
Save LordAro/503c83ec8af3329d96d9 to your computer and use it in GitHub Desktop.
I did a bad thing....
This file contains 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 FB Autopoker | |
// @version 0.1 | |
// @description enter something useful | |
// @match https://www.facebook.com/pokes/* | |
// @copyright 2014, Me | |
// ==/UserScript== | |
function autoPoke() { | |
a = document.getElementsByClassName("_42ft _4jy0 _4jy3 _4jy1 selected"); | |
for (i = 0; i < a.length; i++) { | |
if (a[i].getAttribute("data-gt") != null) continue; | |
//console.log(a[i]); | |
a[i].click(); | |
} | |
t = setTimeout(autoPoke, 500); | |
} | |
autoPoke() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment