TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

7 点作者 amima超过 12 年前
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.<p>setInterval( function() { var buttons = document.getElementsByClassName( 'buy-button-price' ); for ( var i = 0; i &#60; buttons.length; i++ ) { if ( buttons[i].value === 'Proceed' ) { buttons[i].click(); console.log("click") } } }, 4000);

3 条评论

t413超过 12 年前
Legendary. Was working on building this exact kindof thing but you beat me to it. Took 1.5 minutes and it worked.<p>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.
SubFuze超过 12 年前
I made a similar one but instead of waiting 4 seconds, it makes a new request after it sees a new error response: <a href="http://pastebin.com/raw.php?i=XWwm8Sdv" rel="nofollow">http://pastebin.com/raw.php?i=XWwm8Sdv</a>
wmf超过 12 年前
There's a better trick. Tab until the proceed button has keyboard focus, then hold down Enter.
评论 #4840006 未加载