Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Useful-Scripts-Extension/useful-script
/ copy
Function
copy
pages/viewScriptSource/main.js:25–28 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
23
};
24
25
function
copy(text) {
26
navigator.clipboard.writeText(text);
27
alert(
"Copied"
);
28
}
29
30
// https://stackoverflow.com/a/26276924/11898496
31
async
function
getScriptSource(scriptId) {
Callers
1
main.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected