1.0.3 • Published 7 years ago
parcel-plugin-greasemonkey v1.0.3
parcel-plugin-greasemonkey
Parcel plugin for Greasemonkey/Tampermonkey.
Features
- Add UserScript header to bundled file
Install
Install with npm:
npm install parcel-plugin-greasemonkeyUsage
├── greasemonkey.header
├── yourscript.user.js
└── package.json- Create
greasemonkey.headerin project root directory
// ==UserScript==
// @name user-script
// @namespace info.efcl
// @match https://*
// @grant none
// ==/UserScript==- Install
parcel-plugin-greasemonkey
npm install parcel-plugin-greasemonkey --save-dev
# or
yarn install parcel-plugin-greasemonkey -D- Build
.user.jsas entry file
parcel build ---no-source-maps --no-content-hash ./yourscript.user.js --out-dir ./distFinally, Generate Greasemonkey script to ./dist/yourscript.user.js!
// ==UserScript==
// @name user-script
// @namespace info.efcl
// @match https://*
// @grant none
// ==/UserScript==
// your scriptChangelog
See Releases page.
Running tests
Install devDependencies and Run npm test:
npm testContributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Author
License
MIT © azu