tampermonkey

Write Tampermonkey userscripts to automate browser tasks and extract data.

77|9|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/henkisdabro/wookstar-claude-plugins --skill tampermonkey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tampermonkey
Source: https://github.com/henkisdabro/wookstar-claude-plugins/tree/main/plugins/tampermonkey/skills/tampermonkey
Command: npx skills add https://github.com/henkisdabro/wookstar-claude-plugins --skill tampermonkey

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Tampermonkey enables writing small, portable scripts that automate browser tasks, modify page contents, and streamline repetitive interactions across websites.

Core Features & Use Cases

  • Automate page interactions: simulate clicks, fill forms, extract data, and navigate pages without manual effort.
  • DOM and style enhancements: inject CSS, alter HTML structure, and adapt layouts on the fly.
  • Cross-site automation with GM_ APIs*: leverage APIs like GM_setValue, GM_xmlhttpRequest, GM_addElement to store data, fetch remote resources, and inject content safely.
  • Security and execution control: choose sandbox modes to isolate script execution and minimize risk while interacting with page content.

Quick Start

Install Tampermonkey and load a simple script that logs a message on page load, or modifies a page element using GM_* APIs.

Frequently Asked Questions about tampermonkey

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate browser tasks like form filling and data extraction?

Automate browser tasks by writing Tampermonkey userscripts that interact with web pages to simulate clicks, fill forms, and extract data without manual effort. These portable scripts streamline repetitive interactions across websites.

Can I use GM_xmlhttpRequest to fetch remote resources in a userscript?

GM_xmlhttpRequest is supported in Tampermonkey userscripts to fetch remote resources safely. You can leverage GM_* APIs like GM_setValue and GM_addElement to store data, fetch external content, and inject elements into the page.

What is the best way to modify page content and inject CSS into web pages?

Modify page content and inject CSS by writing Tampermonkey userscripts that alter HTML structure and adapt layouts on the fly. Scripts can execute DOM manipulation to inject styles and enhance page presentation dynamically.

Does Tampermonkey support sandbox modes to isolate userscript execution?

Tampermonkey supports sandbox modes to isolate userscript execution and minimize security risk. Choosing the appropriate sandbox mode allows you to control execution isolation while safely interacting with page content and external resources.

How do I set up a simple Tampermonkey userscript to modify page elements on load?

Set up a simple Tampermonkey userscript by defining frontmatter metadata in SKILL.md and using YAML-based configuration. Load the script to log a message on page load or modify elements using GM_* APIs.

What are the limitations of browser automation with userscripts?

Userscript browser automation requires mindful sandbox execution to minimize risk. While scripts can interact with page content and external resources, execution isolation constraints mean they must be carefully configured for safe cross-site automation.