Loading...
Loading...
Use when building, debugging, packaging, or publishing browser userscripts for Tampermonkey or ScriptCat, including GM APIs, metadata blocks, permission issues, @match/@grant/@connect setup, ScriptCat background or scheduled scripts, UserConfig blocks, or subscription workflows.
npx skill4agent add xixu-me/skills develop-userscriptsGM_*@background@crontab==UserConfig====UserSubscribe==digraph userscript_runtime {
"Need page DOM or page context?" [shape=diamond];
"Need persistent or scheduled work?" [shape=diamond];
"Need to install many scripts as one package?" [shape=diamond];
"Portable foreground script" [shape=box];
"ScriptCat background or crontab script" [shape=box];
"ScriptCat subscription package" [shape=box];
"Need page DOM or page context?" -> "Portable foreground script" [label="yes"];
"Need page DOM or page context?" -> "Need persistent or scheduled work?" [label="no"];
"Need persistent or scheduled work?" -> "ScriptCat background or crontab script" [label="yes"];
"Need persistent or scheduled work?" -> "Need to install many scripts as one package?" [label="no"];
"Need to install many scripts as one package?" -> "ScriptCat subscription package" [label="yes"];
"Need to install many scripts as one package?" -> "Portable foreground script" [label="no"];
}Allow User Scripts@match@grant@connect@run-at==UserScript==background.html@version@updateURL@downloadURL==UserSubscribe==@connect| Intent | Default choice | Watch for |
|---|---|---|
| Page UI, DOM scraping, page patching | Portable | |
| Cross-origin API access | | Missing hosts, cookie behavior differences, user authorization |
| Long-running worker | ScriptCat | No DOM, must return |
| Scheduled task | ScriptCat | Only first |
| User-editable settings | | Block placement and |
| Silent bundle install and updates | | HTTPS, |
@grant@connectGM_xmlhttpRequestGM_cookie@include@match==UserScript====UserSubscribe====UserConfig==group.keyreferences/metadata-and-api-map.mdreferences/scriptcat-extensions.md