暴力猴 https://violentmonkey.github.io/
|
|
3 anni fa | |
|---|---|---|
| .github | 3 anni fa | |
| scripts | 3 anni fa | |
| src | 3 anni fa | |
| test | 3 anni fa | |
| .babelrc.js | 4 anni fa | |
| .browserslistrc | 6 anni fa | |
| .editorconfig | 4 anni fa | |
| .eslintignore | 4 anni fa | |
| .eslintrc.js | 3 anni fa | |
| .gitignore | 4 anni fa | |
| .postcssrc.js | 3 anni fa | |
| LICENSE | 8 anni fa | |
| README.md | 3 anni fa | |
| gulpfile.js | 3 anni fa | |
| jsconfig.json | 4 anni fa | |
| package.json | 3 anni fa | |
| yarn.lock | 3 anni fa |
Violentmonkey provides userscripts support for browsers. It works on browsers with WebExtensions support.
More details can be found here.
A test build is generated automatically for changes between beta releases. It can be installed as an unpacked extension in Chrome and Chromium-based browsers or as a temporary extension in Firefox. It's likely to have bugs so do an export in Violentmonkey settings first. This zip is available only if you're logged-in on GitHub site. Open an entry in the CI workflows table and click the Violentmonkey-... link at the bottom to download it.
The following environment variables will be injected at compilation time for some features to work:
SYNC_GOOGLE_CLIENT_ID / SYNC_GOOGLE_CLIENT_SECRET - Google sync serviceSYNC_ONEDRIVE_CLIENT_ID / SYNC_ONEDRIVE_CLIENT_SECRET - OneDrive sync serviceMake 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
Just create a tag and push it.
When a tag is pushed to GitHub, a (pre)release will be created with assets built by GitHub Actions.
# Create a prerelease
$ yarn bump
# Create a patch release
$ yarn version --patch