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

12 lines
438 B
JavaScript

var stopped = [];
engines.all().forEach(function (engine) {
var source = String(engine.getSource());
if (engine.id !== engines.myEngine().id && /(?:kuaishou-daily|kuaishou-resume)/.test(source)) {
stopped.push({id: engine.id, source: source});
engine.forceStop();
}
});
files.write('/sdcard/Download/kuaishou-watch-stopped.json', JSON.stringify(stopped));
sleep(600);
app.launchPackage('com.kuaishou.nebula');