2026-10-30 14:31:15 +08:00

15 lines
833 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 本轮余额已由61增至1392,翻卡已结算;从后续连续观看继续,不重复扫描/开卡。
var stopped=[];
engines.all().forEach(function(e){
if(e.id===engines.myEngine().id)return;
if(!/(?:kuaishou-daily\.auto\.js|ks-video-resume\.auto\.js)$/.test(String(e.getSource())))
throw new Error('其他脚本仍在运行,不能同时操作:'+e.getSource());
stopped.push(e.id);e.forceStop();
});
var deadline=Date.now()+5000;
while(engines.all().some(function(e){return stopped.indexOf(e.id)>=0;})&&Date.now()<deadline)sleep(100);
if(engines.all().some(function(e){return stopped.indexOf(e.id)>=0;}))throw new Error('旧快手引擎未退出');
engines.execScriptFile('/sdcard/脚本/快手/kuaishou-daily.auto.js',{
path:'/sdcard/脚本/快手/',arguments:{startStage:'continuousVideo'}
});