parcel-plugin-greasemonkey
v1.0.3
Published
parcel-plugin for Greasemonkey.
Downloads
6
Readme
parcel-plugin-greasemonkey
Parcel plugin for Greasemonkey/Tampermonkey.
Features
- Add UserScript header to bundled file
Install
Install with npm:
npm install parcel-plugin-greasemonkey
Usage
├── greasemonkey.header
├── yourscript.user.js
└── package.json
- Create
greasemonkey.header
in 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.js
as entry file
parcel build ---no-source-maps --no-content-hash ./yourscript.user.js --out-dir ./dist
Finally, Generate Greasemonkey script to ./dist/yourscript.user.js
!
// ==UserScript==
// @name user-script
// @namespace info.efcl
// @match https://*
// @grant none
// ==/UserScript==
// your script
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test
:
npm test
Contributing
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