MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / setAllButtonsDisabled

Function setAllButtonsDisabled

example/tests/gm_download_test.js:1073–1076  ·  view source on GitHub ↗
(disabled)

Source from the content-addressed store, hash-verified

1071
1072 let running = false;
1073 function setAllButtonsDisabled(disabled) {
1074 panel.querySelector("#start").disabled = disabled;
1075 $manualButtons.querySelectorAll("button").forEach((b) => { b.disabled = disabled; b.style.opacity = disabled ? "0.5" : "1"; });
1076 }
1077
1078 async function runAuto() {
1079 if (running) { logLine("<i>Already running — wait for the current suite to finish.</i>"); return; }

Callers 2

runAutoFunction · 0.85

Calls 1

forEachMethod · 0.80

Tested by

no test coverage detected