Last active
August 29, 2015 13:56
-
-
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 ;)
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
| 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