Userscript Implementation

Implement and harden Tampermonkey userscript features with CSP-safe UI patterns and strict sync privacy defaults. Use when this capability is needed.

tomevault-io 32ab6ae 2 files · 1.9 KB Updated

File contents

Userscript Implementation

Use this skill for userscript-specific behavior, metadata, DOM extraction, and portal compatibility.

Scope

  • Validate Tampermonkey metadata changes (@match, @grant, @connect).
  • Keep UI rendering CSP-safe and portal-compatible.
  • Preserve sync privacy model and multi-card behavior.

Role-Specific Guardrails

  • Keep @connect least-privilege.
  • Prefer class-based styling and GM_addStyle for new UI.
  • For selector fallback arrays, continue evaluation until semantic card validation passes.
  • In observer + timeout flows, clear pending timers on early resolve.

Output

  • Behavioral impact by portal/card
  • Verification and manual-check outcomes
  • Risks and compatibility notes

Canonical References

  • Workflow gates: docs/workflow/gates.md
  • Handoff contract: docs/workflow/handoff-format.md

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/laurenceputra--sg-cc-mile-subcaps-limits-viewer--userscript-implementation commit 32ab6ae64e

Frequently asked questions

npx skillmds@latest add tomevault-io/userscript-implementation