
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tampermonkey-webpack-template
Advanced tools
This is a template for the webpack plugin html-webpack-plugin. Its usful for you to develop tampermonkey userscripts.
Oh, pls use cdn.
Templates for the html-webpack-plugin are implemented using underscore templates (previously, in 2.x, blueimp templates). You can write your own as well.
Install the template in your project with npm:
$ npm install tampermonkey-webpack-template --save-dev
To make it work, you need to provide these required parameters:
inject: falsetemplate: require('tampermonkey-webpack-template')And you can provide some other optional parameters:
scriptName: The name of your tampermonkey script.namespace: Same as namespace field in tampermonkey script.version: Same as version field in tampermonkey script.description: Same as description field in tampermonkey script.author: Same as author field in tampermonkey script.include: Same as include field in tampermonkey script.exclude: Same as exclude field in tampermonkey script.match: Same as match field in tampermonkey script.otherwise available.
Here's an example webpack config illustrating how to use these options in your webpack.config.js:
const packageJson = require('./package.json')
{
// ...
plugins: [
new HtmlWebpackPlugin({
// Required
inject: false,
template: require('tampermonkey-webpack-template'),
// template: 'node_modules/tampermonkey-webpack-template/index.ejs',
// Optional
scriptName: packageJson.name,
namespace: packageJson.namespace,
description: packageJson.description,
version: packageJson.version,
include: '/.*\\/github/.*/',
exclude: '/.*\\/github/.*/',
match: '/.*\\/github/.*/'
})
]
}
FAQs
a-simple-template-for-tampermonkey
We found that tampermonkey-webpack-template demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.