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

tophf 6f7ef3c829 fix: support user:pass@ in urls před 3 roky
.github aef6d7cf29 chore: use default (90) retention-days před 3 roky
scripts 132757a7f6 chore: update js-yaml před 3 roky
src 6f7ef3c829 fix: support user:pass@ in urls před 3 roky
test 477fb191bb feat: update isRemote (#1491) před 3 roky
.babelrc.js 9c94de280d fix: define safe globals via header injection (#1359) před 4 roky
.browserslistrc 1e75a50fa3 chore: compile to Firefox >= 53 před 6 roky
.editorconfig 966004e8fa chore: avoid git noise in package.json's last newline před 4 roky
.eslintignore b4be70a3d0 chore: simplify generation of test build's name před 4 roky
.eslintrc.js a2cde315fa feat: inject page sandbox only when needed před 4 roky
.gitignore 9cc7a0e0bb chore: auto deploy AMO unlisted version před 5 roky
.postcssrc.js a7d51275ab fix: disable CSS extraction, fixes #1420 před 4 roky
LICENSE be7d421dcf chore: add MIT LICENSE před 8 roky
README.md 93e6d0f394 chore: describe test builds před 4 roky
gulpfile.js 03e97d3b66 fix: strip `description` from locales in `dist` před 4 roky
jsconfig.json 8634c36917 chore: add jsconfig.json to help IntelliSense před 4 roky
package.json a0e2e6d9a5 v2.13.0.20 před 3 roky
yarn.lock 8e7e871800 chore: upgrade js-yaml for stricter parser před 3 roky

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.

Automated Builds for Testers

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.

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