Introduction¶
Under the “everything is a plugin” philosophy of DeepSeek Harness (DSH), publishing and maintaining userscripts can be done entirely from the command line or within an agent workflow. However, GreasyFork has no official API—submissions can only be made through a web form. The dsh-greasyfork plugin simulates these forms, turning “publishing a userscript” into an operation as simple as git push.
Maintainer: xkzm123
What It Can Do¶
The plugin provides a set of tools for querying GreasyFork script information, publishing new scripts, releasing new versions, and more:
greasyfork_list: List your published scripts; search for scripts by keyword; view popular scripts and library scripts.greasyfork_status: Read a script’s name, version, version history, author, and links (no login required).greasyfork_preflight: Pre-publish checks: metadata parsing, version conflicts, namespace changes, file size,@matchcount.greasyfork_push: Publish a new script, release a new version (with changelog support),dryRunpreview,syncto pull updates from GitHub.greasyfork_auth: View, save, verify, and clear credentials.greasyfork_guide: Built-in operation manual.
It’s also available via the command line:
node lib/cli.js auth status
node lib/cli.js preflight --file my.user.js
node lib/cli.js push --file my.user.js --script-type public
node lib/cli.js push --file my.user.js --script-id 123456 --changelog "fix X"
Credentials: Manual Entry, No Browser Automation¶
Since v2.0, the “auto-launch browser to read cookies” approach has been completely removed—it conflicted with the user’s own browser profile and got blocked by Cloudflare Turnstile. The current workflow:
- Install Cookie-Editor (or EditThisCookie) in your browser.
- Log in to greasyfork.org.
- In the extension, click Export → JSON and copy the entire content.
- In DSH: Settings → GreasyFork → Paste → Verify and Save.
Supported paste formats (all auto-detected):
- Cookie-Editor / EditThisCookie JSON array
- JSON object
{ "name": "value" }or{ "cookies": [...] } - Netscape
cookies.txt(7-column tab-separated) - A full
Cookie: a=1; b=2header line from DevTools - Multi-line
name=value - A single
_greasyfork_session=...
Credentials are written to ~/.dsh/greasyfork/credentials.json (permissions 0600) and never appear in configuration or logs.
Validity: _greasyfork_session is a Rails session cookie. The site does not return an expiration time, so the plugin displays it as “session-based.” As long as it isn’t invalidated by logging in from another browser/device, it remains valid long-term. Exports that include expirationDate (e.g., Cookie-Editor’s JSON) will display the remaining days.
Installation & Activation¶
Enable the plugin in DSH: Settings → GreasyFork (once enabled, the tools listed above become available).
Typical Usage¶
- List your published scripts (example):
node lib/cli.js list
- Run a pre-publish check on a script:
node lib/cli.js preflight --file my.user.js
- Publish a new script:
node lib/cli.js push --file my.user.js --script-type public
- Release a new version (with changelog):
node lib/cli.js push --file my.user.js --script-id 123456 --changelog "fix X"
- Dry-run preview (no actual publication):
node lib/cli.js push --file my.user.js --dry-run
- Let the site pull updates from GitHub (sync):
node lib/cli.js push --file my.user.js --sync
- Check credential status:
node lib/cli.js auth status
Use Cases & Notes¶
Ideal for developers who need to publish or update GreasyFork userscripts from the command line or within an agent workflow.
Note: The plugin runs with the privileges of the current dsh process. Review the source code and license before installing.
Conclusion¶
dsh-greasyfork integrates GreasyFork userscript publishing and updates into the DSH ecosystem, making it a great fit for developers who prefer command-line tools or automated workflows.
- Directory page: https://www.skillhub.cn/plugins/xkzm123/dsh-greasyfork
- GitHub: https://github.com/xkzm123/dsh-greasyfork