sInjector is a webpack plugin which generates bookmarks that inject HTML, CSS, and JS into other webpages, and is used in many different applications.
const { Sinjector } = require('sinjector');
module.exports = {
// …
plugins: [
new Sinjector({
outputFile: 'bookmarklet.js',
}),
],
};