

























我已经抢到了。
// ============================================================
// 火山引擎 Coding Plan - Pro Plan 自动抢购脚本
// ============================================================
// Console 里粘贴后输入 AC.start() 启动
// ============================================================
(function(win) {
‘use strict’;
const AC = {
timerId: null, count: 0, running: false, interval: 3000,
_tryClick: async function() {
this.count++;
var btns = , els = document.querySelectorAll(‘button,a,[role=“button”],span,div,label’);
for (var el of els) {
var t = (el.textContent || ‘’).trim().toLowerCase();
if (t.indexOf(‘pro’) < 0) continue;
if (!el.offsetParent || el.disabled) continue;
btns.push(el);
}
if (!btns.length) { console.log(‘
第’+this.count+‘次: 未找到Pro按钮’); return false; }
for (var b of btns) {
b.click();
b.dispatchEvent(new MouseEvent(‘click’, { bubbles: true, cancelable: true, view: win }));
}
console.log(‘
第’+this.count+‘次: 已点击Pro按钮’);
return true;
},
start: async function(ms) {
if (this.running) return;
if (ms) this.interval = ms;
this.running = true; this.count = 0;
console.log(‘
Pro Plan 抢购已启动,间隔 ‘+this.interval+‘ms’);
while (this.running) { await this._tryClick(); await new Promise(r => setTimeout(r, this.interval)); }
},
stop: function() { this.running = false; console.log(‘
已停止’); }
};
win.AC = AC;
console.log(’
已加载,输入 AC.start() 开始抢Pro Plan’);
})(window);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。