Skip to content

Instantly share code, notes, and snippets.

@atomrc
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save atomrc/8841634 to your computer and use it in GitHub Desktop.

Select an option

Save atomrc/8841634 to your computer and use it in GitHub Desktop.
Automatic Facebook pokeback. To use it, just go to www.facebook.com/pokes and copy paste the code into your browser console. Enjoy ;)
function pokeback() {
//all the pokeback buttons on the page
var pbButtons = document.querySelectorAll('#poke_live_new a.selected');
for (var i in pbButtons) {
if (pbButtons.hasOwnProperty(i)) {
pbButtons[i].click && pbButtons[i].click();
}
}
}
window.setInterval(pokeback, 200);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment