Script for clicking Proceed button at Google Play cart every 4sec to buy Nexus

7 points by amima ↗ HN
It really helps, my friend just got his Nexus 4 order with this script. In Google Chrome press Ctrl+Shift+J, paste the script to Console, and hit Enter.

setInterval( function() { var buttons = document.getElementsByClassName( 'buy-button-price' ); for ( var i = 0; i < buttons.length; i++ ) { if ( buttons[i].value === 'Proceed' ) { buttons[i].click(); console.log("click") } } }, 4000);

4 comments

[ 3.6 ms ] story [ 24.8 ms ] thread
There's a better trick. Tab until the proceed button has keyboard focus, then hold down Enter.
There are two problems with this: you have to actually hold Enter, and the other thing: it will produce way too many requests to Google Play. It will cause Play to handle requests even worse, you will not benefit from this. Automatic request every 4 seconds is better for Google Play and more convinient :).
Legendary. Was working on building this exact kindof thing but you beat me to it. Took 1.5 minutes and it worked.

However, it HAS NO DETECTION OF SUCCESS, there is a popup not a page change. If I did it again I'd save the setInterval() result id and then use clearInterval(thatVar) when it works.