1

【科学家养成日记#10】简单的自动点击脚本

 1 year ago
source link: https://mirror.xyz/ericet.eth/QtQoNWBauVpzqS2wvZr50zDMboqq-0R6z65RGbefLIY
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【科学家养成日记#10】简单的自动点击脚本

January 27th, 2022

经常会碰到一些抢购需要拼手速和耐力的,这时候如果有个自动帮你点击的脚本会让你的抢购效率最大化

这里分享一个很简单的自动点击脚本。这个脚本只需要浏览器就能运行

拿今天比较火的Lit Gateway做个例子。这项目每15分钟发2个NFT让人抢,谁的速度快,NFT就归谁

所以写的这个脚本需要一直点击领取按钮,直到抢到为止

这是脚本:

claimInterval = setInterval(claim, 1000); //每1秒
function claim() {
   document.querySelector('#appWrap > div.twitter-claim-nft-page_main__3wdh8 > button').click();
}

使用这个脚本也很简单,只需按F12选择Console,然后输入上面的脚本就好了

脚本会自动每秒点击一下领取按钮,直到成功

上面的脚本只适用于lit gateway的NFT抢购,如果你要用到其他地方,需要把点击按钮的位置修改一下

 document.querySelector('位置').click();

要找按钮的位置也很简单,只需右击按钮,选择Inspect,找到按钮的代码,右击->Copy->Copy Selector

然后复制到上面代码的'位置'那里就可以运行了


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK