暴力猴 https://violentmonkey.github.io/
|
|
5 years ago | |
|---|---|---|
| .github | 5 years ago | |
| scripts | 5 years ago | |
| src | 5 years ago | |
| test | 5 years ago | |
| .babelrc.js | 5 years ago | |
| .browserslistrc | 6 years ago | |
| .editorconfig | 8 years ago | |
| .eslintignore | 8 years ago | |
| .eslintrc.js | 5 years ago | |
| .gitignore | 7 years ago | |
| LICENSE | 8 years ago | |
| README.md | 5 years ago | |
| gulpfile.js | 5 years ago | |
| package.json | 5 years ago | |
| yarn.lock | 5 years ago |
Violentmonkey provides userscripts support for browsers. It works on browsers with WebExtensions support.
More details can be found here.
Make sure Node.js greater than v10.0 and Yarn v1.x is installed.
# Install dependencies
$ yarn
# Watch and compile
$ yarn dev
Then load the extension from 'dist/'.
After a new (pre)release is created, we should build the project and upload to web stores.
# Build for normal releases
$ yarn build
# Build for self-hosted release that has an update_url
$ yarn build:selfHosted
$ yarn bump
$ yarn version --patch
Create a new updates.json so that self-hosted versions can be updated to the new version.
$ yarn update:selfHosted