Steven Smith revised this gist . Go to revision
1 file changed, 10 insertions
gistfile1.txt(file created)
| @@ -0,0 +1,10 @@ | |||
| 1 | + | function pokeAll(){ | |
| 2 | + | buttons = document.getElementsByClassName("_42ft _4jy0 _4jy3 _4jy1 selected _51sy"); | |
| 3 | + | for (var i = 0; i < buttons.length; i++) { | |
| 4 | + | if (buttons[i].innerText == "Poke Back") { | |
| 5 | + | buttons[i].click() | |
| 6 | + | } | |
| 7 | + | } | |
| 8 | + | setTimeout(pokeAll, 1000) | |
| 9 | + | } | |
| 10 | + | pokeAll() | |
Newer
Older