-
-
Save Sacki2013/9241771 to your computer and use it in GitHub Desktop.
Revisions
-
z------------- created this gist
Feb 27, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ // get poke buttons, including suggested pokes var pokeButtons = document.querySelectorAll(".mls a._4jy0"); // exclude suggested pokes var pokeBacks = []; for(i=0;i<pokeButtons.length;i++){ if(pokeButtons[i].parentNode.parentNode.parentNode.parentNode.innerHTML.indexOf("Suggested Poke") == -1){ pokeBacks.push(pokeButtons[i]) } } // click all poke buttons for(i=0;i<pokeBacks.length;i++){ pokeBacks[i].click() }