MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / isActiveScript

Function isActiveScript

scripts/helpers/utils.js:202–205  ·  view source on GitHub ↗
(scriptId)

Source from the content-addressed store, hash-verified

200}
201
202export async function isActiveScript(scriptId) {
203 let currentList = await getAllActiveScriptIds();
204 return currentList.find((_) => _ == scriptId) != null;
205}
206
207export async function getAllActiveScriptIds() {
208 return await Storage.get(listActiveScriptsKey, []);

Callers 3

createScriptButtonFunction · 0.90
updateButtonCheckerFunction · 0.90
toggleActiveScriptFunction · 0.85

Calls 1

getAllActiveScriptIdsFunction · 0.85

Tested by

no test coverage detected