Parcel plugin for Greasemonkey.
MIT License
Parcel plugin for Greasemonkey/Tampermonkey.
Install with npm:
npm install parcel-plugin-greasemonkey
greasemonkey.header
yourscript.user.js
package.json
greasemonkey.header
in project root directory// ==UserScript==
// @name user-script
// @namespace info.efcl
// @match https://*
// @grant none
// ==/UserScript==
parcel-plugin-greasemonkey
npm install parcel-plugin-greasemonkey --save-dev
# or
yarn install parcel-plugin-greasemonkey -D
.user.js
as entry fileparcel 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
Q. Does not insert header.
A. Please check your script file name is ended with .user.js
.
This plugin only check .user.js
file.
See Releases page.
Install devDependencies and Run npm test
:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT azu