https://github.com/wdssmq/userscript
各种「GM_脚本」
https://github.com/wdssmq/userscript
javascript tampermonkey
Last synced: 10 months ago
JSON representation
各种「GM_脚本」
- Host: GitHub
- URL: https://github.com/wdssmq/userscript
- Owner: wdssmq
- Created: 2019-10-28T03:45:30.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-08-17T06:52:00.000Z (11 months ago)
- Last Synced: 2025-08-17T08:33:54.336Z (11 months ago)
- Topics: javascript, tampermonkey
- Language: JavaScript
- Homepage: http://userscript.canihave.fun/
- Size: 1.39 MB
- Stars: 20
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
## 概述
各种猴子脚本
## 关于
博客:[https://www.wdssmq.com](https://www.wdssmq.com "沉冰浮水")
爱发电: [https://afdian.com/@wdssmq](https://afdian.com/@wdssmq "沉冰浮水正在创作和 z-blog 相关或无关的各种有用或没用的代码 | 爱发电")
更多脚本: [https://github.com/wdssmq/userscript](https://github.com/wdssmq/userscript "wdssmq/userscript: 各种猴子脚本")
GreasyFork: [https://greasyfork.org/zh-CN/users/6865](https://greasyfork.org/zh-CN/users/6865 "wdssmq - GreasyFork")
交流反馈:189574683
> wdssmq/rollup-plugin-monkey: 使用 rollup 开发「GM\_脚本」:
>
> [https://github.com/wdssmq/rollup-plugin-monkey](https://github.com/wdssmq/rollup-plugin-monkey "wdssmq/rollup-plugin-monkey: 使用 rollup 开发「GM\_脚本」")
## 已有项目
占位
## up empty_def
```bash
PROJECT_SCRIPT=empty_def
rm -rf ${PROJECT_SCRIPT}
# 下载初始模板
wget https://ghproxy.com/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}
sed -i "s/\"script_def\"/\"${PROJECT_SCRIPT}\"/" ${PROJECT_SCRIPT}/src/__info.js
eslint empty_def/**/*.js empty_def/*.mjs --fix
rm -rf script_def.tar.gz
```
## postcss
```bash
cnpm i postcss rollup-plugin-postcss -d
# less sass stylus 按需安装对应的依赖
```
```js
import postcss from "rollup-plugin-postcss";
[prodConfig, devConfig].forEach((config) => {
config.plugins.push(postcss());
});
```