You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**CodeTweak** is a modern user script manager and JavaScript editor, designed as a modern alternative to Tampermonkey. It is fully open source and built with privacy in mind.
3
+
CodeTweak is a Manifest V3 userscript manager with a built-in editor.
4
4
5
-
---
5
+
## What it does
6
6
7
-
## Description
7
+
- Create, edit, enable, and disable userscripts.
8
+
- Run scripts by URL pattern and run timing.
9
+
- Support common GM APIs (`GM_getValue`, `GM_setValue`, `GM_xmlhttpRequest`, etc).
10
+
- Import scripts from Greasy Fork.
8
11
9
-
CodeTweak provides full support for **Manifest V3**, offering a modern code editor with linting, formatting, basic autocomplete, and syntax highlighting. It supports all safe GM APIs and URL matching. Users can install scripts directly from **Greasy Fork** and manage them via the dashboard.
12
+
## Install
10
13
11
-
We prioritize privacy: **no tracking, no analytics, no selling of user data**. All permissions are only requested for GM API support.
14
+
### Chrome / Chromium (manual)
12
15
13
-
---
16
+
```bash
17
+
npm install
18
+
npm run build:chrome
19
+
```
14
20
15
-
## Features
21
+
Then:
16
22
17
-
***Code Editor** — Customizable editor with linting, formatting, autocomplete, and syntax highlighting.
18
-
***GM API Support** — Supports all safe GM APIs.
19
-
***Regex URLs** — Modern regex support for URL matching.
20
-
***Greasy Fork Integration** — Install scripts directly from CodeTweak or the Greasy Fork website.
21
-
***Privacy First** — No tracking, no analytics, only necessary permissions.
23
+
1. Open `chrome://extensions`.
24
+
2. Enable `Developer mode`.
25
+
3. Click `Load unpacked`.
26
+
4. Select `build/chrome`.
22
27
23
-
---
28
+
### Firefox (manual)
24
29
25
-
## Contributing
30
+
```bash
31
+
npm install
32
+
npm run build:firefox
33
+
```
26
34
27
-
We welcome contributions from the community! Whether fixing bugs, adding features, or improving documentation, your help is appreciated.
35
+
Use the generated package:
28
36
29
-
### Development
37
+
-`build/codetweak-firefox.zip`
30
38
31
-
#### Prerequisites
39
+
##Development
32
40
33
-
* Node.js 16+
34
-
* npm
35
-
* Chrome/Chromium browser
41
+
```bash
42
+
npm install
43
+
npm run lint
44
+
npm run build:chrome
45
+
npm run build:firefox
46
+
```
36
47
37
-
#### Build
48
+
Docs:
38
49
39
50
```bash
40
-
npm install
41
-
npm build.js
51
+
npm run docs:dev
52
+
npm run docs:build
42
53
```
43
54
44
-
---
55
+
## Project structure
56
+
57
+
-`src/` extension source
58
+
-`buildScripts/` browser build scripts
59
+
-`docs-src/` VitePress documentation source
45
60
46
-
## Acknowledgments
61
+
## Example userscript
47
62
48
-
* Built with [CodeMirror](https://codemirror.net/)
49
-
* Inspired by [Tampermonkey](https://www.tampermonkey.net/) and [Greasemonkey](https://www.greasespot.net/)
content=content.replace(/new\s+Function\s*\(\s*['"]unsafeWindow['"]\s*,\s*userCode\s*\)/g,"(function(){ throw new EvalError('Function constructor is blocked in Firefox'); })");
0 commit comments