Capabilities
What Tweak the Web does, how it works, and how to check it.
Tweak the Web is a Manifest V3 browser extension for Chromium browsers. It applies saved rules to web pages as they load. Rules come from a person's AI assistant (through the Epiphani connection, an MCP server) or from a bundled library of 84 rules. This page lists each capability with its mechanism and a way to verify it independently.
Rule types
Convert units
Converts data rates to bytes per second on matching pages.
- Mechanism
- Walks text nodes and pairs each number with the nearest rate label in reading order, including labels the site draws in a separate element. Mbps and Gbps become MB/s, Kbps becomes KB/s; the value is divided by eight (Gbps also multiplied by 1,000) and shown with one decimal. Labels such as ms, %, MB, and latency block a pairing, so ping values keep their unit. When a label changes after its number (fast.com writes the number first, then the unit), nearby numbers are re-checked.
- Verify
- On fast.com or speedtest.net with the rule on, every rate label reads MB/s and the number equals the Mbps figure divided by eight. Example: 940 Mbps reads 117.5 MB/s; 5.2 Gbps reads 650.0 MB/s.
Hide
Hides page elements matched by a CSS selector.
- Mechanism
- Injects a single style element that sets the matched elements to display none, so the layout closes up. Invalid selectors are skipped and the rest of the rule still applies.
- Verify
- In developer tools, the matched element's computed display is none, and a style element with id tweak-the-web-style is present in the page head.
Restyle (CSS)
Applies custom CSS to matching pages.
- Mechanism
- Adds the rule's CSS to the same injected style element. Removing or switching off the rule removes the CSS immediately.
- Verify
- The injected style element contains the rule's CSS; switching the rule off removes it without a reload.
Replace text
Rewrites matching text on the page.
- Mechanism
- Rewrites text nodes as the page loads and as new nodes arrive (a MutationObserver). Original text is kept in memory so switching the rule off restores it exactly. Script, style, code, pre, textarea, and editable regions are skipped.
- Verify
- With a rule replacing "Post" with "Tweet", newly loaded posts show the replacement; switching off restores the original wording.
Block ads
Blocks ads on every site once the person turns it on in Settings.
- Mechanism
- Three layers built from the EasyList filter list. Network: a Chrome declarativeNetRequest ruleset of 5,434 rules (44,814 ad-server domains plus 4,871 address patterns and 540 exceptions) that Chrome applies before a request leaves the browser. Every-site hiding: 13,636 element-hiding rules registered as browser-native content stylesheets at document start, kept off the 154 sites EasyList marks for it. Per site: 16,906 rules for 7,866 sites inserted as a user stylesheet, and 404 text-matching rules (such as a box whose text says Sponsored) applied by the content script as the page changes. A per-site switch adds an allow rule for that site and reloads it. The list is EasyList's, used under CC BY-SA 3.0 and credited in the extension.
- Verify
- With the switch on, an image from an ad server fails to load and the page around it renders; on speedtest.net the display ad slots are hidden and the speed test runs; switching one site off brings its ads back after the reload.
JavaScript rules
Runs a rule's JavaScript on matching pages.
- Mechanism
- Registered through Chrome's userScripts API, which needs the per-extension "Allow User Scripts" setting (Chrome 138 and later). Agents can save JavaScript rules only after the person turns on "Let agents add JavaScript rules" in the extension.
- Verify
- The extension's status reports whether JavaScript rules are available and whether agents may add them; an agent request to save JavaScript returns a refusal until the setting is on.
Matching and lifecycle
Site matching
- Mechanism
- Each rule lists bare hosts (example.com, which also covers its subdomains), Chrome match patterns, or every site. Patterns with a port are refused before saving because Chrome rejects them.
- Verify
- list_rules with a url returns only the rules that match that address.
Timing
- Mechanism
- The content script runs at document_start in every frame and keeps rules applied as the page changes. Single-page apps are re-checked when the address changes (checked every 750 milliseconds).
- Verify
- A speed test that rewrites its number every 30 milliseconds shows the converted value on each update.
Undo
- Mechanism
- Each rule has an enabled switch. Switching off or deleting a rule restores original text and removes injected CSS without a reload.
- Verify
- Flip the switch in the extension popup and watch the page return to its original state.
Rule size
- Mechanism
- Up to 50 actions per rule; rules stack, and at most one unit conversion applies per text node.
- Verify
- save_rule with 51 actions returns a validation error.
Agent tools
Exposed through the Epiphani connection (Model Context Protocol), each with the prefix tweaktheweb_ (for example tweaktheweb_get_page). A new agent is held until the person allows it in the extension popup. An agent opens a site, or writes or installs a rule for one, after the person allows that site once in the popup, and it reads and reloads only the tab the person is looking at.
- status
- Version, rule counts, JavaScript availability, and connection state.
- get_page
- The active tab's address, title, outline, readable text (capped), active rules, and the changes they made, with samples.
- list_rules
- All rules, or those matching a given address.
- save_rule
- Creates or updates a rule after validation (match patterns, action count, JavaScript permission).
- set_rule_enabled
- Switches a rule on or off.
- delete_rule
- Removes a rule and restores affected pages.
- search_library
- Searches the curated library and rules people published, by site, category or wording.
- install_from_library
- Adds a library or published rule to the person's rules by its slug.
- publish_rule
- Publishes one of the person's rules to a public page at tweaktheweb.com/r/<slug>, when the person asks to share it.
- open_url
- Opens an address in a new tab.
- reload_tab
- Reloads the active tab.
Permissions the extension requests
- storage
- Saves rules and settings in the browser.
- alarms
- Keeps the assistant connection alive.
- tabs, scripting
- Reads the active tab's address for get_page and applies rules to open tabs.
- userScripts
- Runs JavaScript rules once the person allows them.
- All sites
- Applies rules on whichever sites a person's rules name.
Library
84 declarative rules in 10 categories (Accessibility 18, Focus 17, Clean up 16, Social 12, Readability 5, Work 5, Search 4, Video 3, Shopping 3, Units 1). Each rule records the demand behind it, such as the Chrome Web Store user count of the single-purpose extension it replaces. Browse them at tweaktheweb.com/library.
Runs on
Google Chrome, Microsoft Edge, Brave, Arc, Vivaldi, and other Chromium browsers with Manifest V3, on Mac, Windows, Linux, and ChromeOS. JavaScript rules need Chrome 138 or later.
Tested
An automated end-to-end suite drives the extension in Chrome for Testing with a real MCP client: 23 of 23 checks passed on November 25, 2026, including live fast.com (537.5 MB/s shown) and speedtest.net (MB/s on every label).