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

Gerald e6cd1d0fed chore: fix sourcemap il y a 3 ans
.github 8b332ce557 chore: do not publish beta version on release il y a 3 ans
.husky 2493bfc6c0 WIP: migrate to Vue 3 il y a 3 ans
scripts e6cd1d0fed chore: fix sourcemap il y a 3 ans
src 49321dd9fc fix: hide size for removed scripts il y a 3 ans
test 905479ca5c Merge branch 'master' into vue3 il y a 3 ans
.babelrc.js 9c94de280d fix: define safe globals via header injection (#1359) il y a 4 ans
.browserslistrc 1e75a50fa3 chore: compile to Firefox >= 53 il y a 6 ans
.editorconfig 966004e8fa chore: avoid git noise in package.json's last newline il y a 4 ans
.eslintignore b4be70a3d0 chore: simplify generation of test build's name il y a 4 ans
.eslintrc.js 2493bfc6c0 WIP: migrate to Vue 3 il y a 3 ans
.gitignore 7de6a238a8 chore: speed up eslint il y a 3 ans
.postcssrc.js 2493bfc6c0 WIP: migrate to Vue 3 il y a 3 ans
LICENSE be7d421dcf chore: add MIT LICENSE il y a 8 ans
README.md e5c0fcd6d7 doc: add discord badge and deprecate gitter il y a 3 ans
gulpfile.js cc60d99d90 chore: fix manifest.json il y a 3 ans
jsconfig.json 58958d3544 chore: update eslint config il y a 3 ans
package.json e6cd1d0fed chore: fix sourcemap il y a 3 ans
yarn.lock e6cd1d0fed chore: fix sourcemap il y a 3 ans

README.md

Violentmonkey

Chrome Web Store Firefox Add-ons Microsoft Edge Add-on Discord 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