Skip to content

Repository files navigation

CodeTweak

CodeTweak is a Manifest V3 userscript manager with a built-in editor.

What it does

  • 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.

Build (Chrome)

npm ci
npm run build:chrome

Output: build/chrome

  • Chrome package: build/codetweak-chrome.zip

Development

npm install
npm run lint
npm run build:chrome

Docs:

npm run docs:dev
npm run docs:build

Project structure

  • src/ extension source
  • buildScripts/ browser build scripts
  • docs-src/ VitePress documentation source

Example userscript

// ==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');awaitGM_setValue('lastRun',Date.now());})();

License

MIT. See LICENSE.txt.

Privacy Policy

  • Docs page: https://mrblankcoding.github.io/CodeTweak/guide/privacy
  • Source page: docs-src/guide/privacy.md

Credits

CodeTweak uses these open source projects:

About

CodeTweak is a lightweight, user script manager and editor. Designed to be a modern version of tampermonkey and to support manifest v3 unlike violent monkey.

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Contributors

Languages