
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
webpack-userscript
Advanced tools
A Webpack4+ plugin for userscript projects.
The package has been renamed from
webpack-tampermonkey
.
With powerful Webpack support, you can even package everything in your userscript, e.g. icons and json data.
.user.js
and .meta.js
.meta.js
is used for update check containing headers only.
Including external header files and package.json.
npm i webpack-userscript -D
Include the plugin in the webpack.config.js
as the following example.
const WebpackTampermonkey = require('webpack-userscript')
module.exports = {
plugins: [
new WebpackTampermonkey()
]
}
Examples can be found under the test fixture folder.
The WebpackTampermonkey
constructor has the following signature.
new WebpackTampermonkey(options)
Also see the schema of options.
type WebpackTampermonkeyOptions =
WPTMOptions |
HeaderFile | // shorthand for WPTMOptions.headers
HeaderProvider // shorthand for WPTMOptions.headers
interface WPTMOptions {
headers: HeaderFile | HeaderProvider
/**
* Output *.meta.js or not
*/
metajs: boolean
/**
* Rename all .js files to .user.js files.
*/
renameExt: boolean
/**
* Prettify the header
*/
pretty: boolean
}
A path to a js or json file which exports a header object or a header provider function.
type HeaderFile = string
A function that returns a header object.
type HeaderProvider = (data: object) => HeaderObject
Note that data
contains the same variables as output.filename
templates.
A header object.
Also see explicit-config/webpack.config.js.
type HeaderFile = object
FAQs
A Webpack plugin for userscript projects.
The npm package webpack-userscript receives a total of 162 weekly downloads. As such, webpack-userscript popularity was classified as not popular.
We found that webpack-userscript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.