暴力猴 https://violentmonkey.github.io/

tophf f6f351f464 fix: guard webpack's bootstrap + window.open() há 4 anos atrás
.github 653b40ed12 chore: hide warning for checkout@v1 há 4 anos atrás
scripts f6f351f464 fix: guard webpack's bootstrap + window.open() há 4 anos atrás
src f6f351f464 fix: guard webpack's bootstrap + window.open() há 4 anos atrás
test 1e9a14d59e refactor: extract/split gmApi wrapper há 4 anos atrás
.babelrc.js 9c94de280d fix: define safe globals via header injection (#1359) há 4 anos atrás
.browserslistrc 1e75a50fa3 chore: compile to Firefox >= 53 há 6 anos atrás
.editorconfig 966004e8fa chore: avoid git noise in package.json's last newline há 4 anos atrás
.eslintignore f6f351f464 fix: guard webpack's bootstrap + window.open() há 4 anos atrás
.eslintrc.js 5a78bdd125 fix: guard main globals in a same-origin page context há 4 anos atrás
.gitignore 9cc7a0e0bb chore: auto deploy AMO unlisted version há 5 anos atrás
.postcssrc.js 07233c9b61 feat: option for ui theme auto/dark/light há 4 anos atrás
LICENSE be7d421dcf chore: add MIT LICENSE há 9 anos atrás
README.md 18e8edcea0 doc: add docs for env vars há 4 anos atrás
gulpfile.js b5d6060a1b fix: use the actual manifest's version in VM_VER há 4 anos atrás
jsconfig.json 8634c36917 chore: add jsconfig.json to help IntelliSense há 4 anos atrás
package.json cde32dcfdb v2.13.0.10 há 4 anos atrás
yarn.lock 07233c9b61 feat: option for ui theme auto/dark/light há 4 anos atrás

README.md

Violentmonkey

Chrome Web Store Firefox Add-ons Microsoft Edge Add-on Gitter Subreddit subscribers

Violentmonkey provides userscripts support for browsers. It works on browsers with WebExtensions support.

More details can be found here.

Environment Variables

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 service
  • SYNC_ONEDRIVE_CLIENT_ID / SYNC_ONEDRIVE_CLIENT_SECRET - OneDrive sync service

Workflows

Development

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/'.

Building

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

Release

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

Related Projects