Created
November 27, 2012 23:46
-
-
Save asciimo/4158009 to your computer and use it in GitHub Desktop.
Fill your GooglePlay cart with Nexuses and drop this script in your Chrome console.
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 simulateClick(element) { | |
| var oEvent; | |
| oEvent = document.createEvent("MouseEvents"); | |
| oEvent.initMouseEvent("click", true, true, document.defaultView); | |
| element.dispatchEvent(oEvent); | |
| return element; | |
| } | |
| var myButton = document.getElementsByClassName("buy-button-price")[1]; | |
| var myInterval = setInterval(function(){simulateClick(myButton)}, 2000); | |
| // After you "win," be nice and run the following statement to stop the clicking | |
| // clearInterval(myInterval); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, you can also call click() on myButton.