CodeTweak is a Manifest V3 userscript manager with a built-in editor.
- Install: Chrome Web Store · Firefox Add-ons
- Docs: mrblankcoding.github.io/CodeTweak
- Create, edit, enable, and disable userscripts.
- Run scripts by URL pattern and run timing.
- Support common GM APIs (
GM_getValue,GM_setValue,GM_xmlhttpRequest, etc). - Import scripts from Greasy Fork.
npm ci
npm run build # Chrome and Firefox
npm run build:chrome # Chrome only
npm run build:firefox # Firefox onlyOutput: build/chrome and build/firefox
- Chrome package:
build/codetweak-chrome.zip - Firefox package:
build/codetweak-firefox.zip(Firefox 140+)
The Firefox manifest is generated from src/manifest.chrome.json by
buildScripts/firefoxManifest.js, so only the Chrome manifest needs editing.
npm install
npm run lint
npm run build:chromeDocs:
npm run docs:dev
npm run docs:buildsrc/extension sourcebuildScripts/browser build scriptsdocs-src/VitePress documentation source
// ==UserScript==
// @name Demo: mark page ready
// @match https://example.com/*
// @run-at document-end
// @grant GM_setValue
// ==/UserScript==
(async () => {
document.body.setAttribute('data-codetweak', 'ready');
await GM_setValue('lastRun', Date.now());
})();MIT. See LICENSE.txt.
- Docs page:
https://mrblankcoding.github.io/CodeTweak/guide/privacy - Source page:
docs-src/guide/privacy.md
CodeTweak uses these open source projects:
- webcrack (MIT)
- CodeMirror (MIT)