
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
rollup-plugin-monkey
Advanced tools
使用 rollup 开发「GM_脚本」
git: https://github.com/wdssmq/rollup-plugin-monkey
npm: https://www.npmjs.com/package/rollup-plugin-monkey
关于本项目的博文链接,以及 B 站视频演示;
「言说」写了份有点「大」的代码_杂七杂八_沉冰浮水:
「折腾」使用 rollup.js 模块化编写 GM 脚本_电脑网络_沉冰浮水:
「小代码」rollup.js 开发「GM_脚本」演示_哔哩哔哩_bilibili:
@require 引入的函数库无法在开发模式下访问;cpnm i 安装依赖;「pnpm 目前还有点问题?」src/__info.js定义,以字符串形式;「这是和其他同类工具最大的不同」
gm_name常量建议修改为和文件夹名一样;npm run devnpm run buildnpm run clearsrc/main.js和src/_base.js用于实际「GM_脚本」功能编写,可自行修改或增加文件;src/__info.js和src/_base.js;rollup.config.mjs内定义:
gm_file: `${gm_name}.user.js`, → gm_file: `dist/${gm_name}.user.js`,PROJECT_SCRIPT=script_demo
# 下载初始模板
wget https://github.com/wdssmq/rollup-plugin-monkey/releases/latest/download/script_def.tar.gz
tar -xzvf script_def.tar.gz
mv script_def ${PROJECT_SCRIPT}
cd ${PROJECT_SCRIPT}
cnpm i
# 修改 src/__info.js 内常量定义
# 运行
npm run dev

Edge 插件:Disable Content-Security-Policy
| lisonge/vite-plugin-monkey | https://github.com/lisonge/vite-plugin-monkey |
| pearofducks/rollup-plugin-dev | https://github.com/pearofducks/rollup-plugin-dev |
| thgh/rollup-plugin-livereload | https://github.com/thgh/rollup-plugin-livereload |
FAQs
rollup plugin for GM_Script
The npm package rollup-plugin-monkey receives a total of 157 weekly downloads. As such, rollup-plugin-monkey popularity was classified as not popular.
We found that rollup-plugin-monkey demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.