Skip to content

Instantly share code, notes, and snippets.

@LordAro
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LordAro/503c83ec8af3329d96d9 to your computer and use it in GitHub Desktop.
Save LordAro/503c83ec8af3329d96d9 to your computer and use it in GitHub Desktop.
I did a bad thing....
// ==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