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

Function viewScriptSource

popup/helpers/utils.js:25–36  ·  view source on GitHub ↗
(script)

Source from the content-addressed store, hash-verified

23export const isTitle = (script) => !(canClick(script) || canAutoRun(script));
24
25export async function viewScriptSource(script) {
26 chrome.windows.create({
27 url: chrome.runtime.getURL(
28 "pages/viewScriptSource/index.html?file=" + script.id
29 ),
30 type: "popup",
31 height: window.screen.height,
32 width: 700,
33 left: window.screen.width / 2 - 350,
34 top: 0,
35 });
36}

Callers 1

createScriptButtonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected