├── .changeset ├── README.md └── config.json ├── .editorconfig ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE │ ├── config.yml │ ├── template-1-bug-report.yml │ └── template-2-feature-request.yml └── workflows │ └── deploy.yml ├── .gitignore ├── .husky └── commit-msg ├── .npmrc ├── .prettierignore ├── LICENSE ├── README.md ├── greasyfork └── GM_config_zh.js ├── legacy ├── package.json ├── packages │ ├── 115-helper │ │ └── 115-helper.user.ts │ ├── access-link │ │ └── access-link.user.ts │ ├── chatgpt-helper │ │ └── chatgpt-helper.user.ts │ ├── color-restore │ │ └── color-restore.user.ts │ ├── imooc-helper │ │ └── imooc-helper.user.ts │ └── tieba-helper │ │ └── tieba-helper.user.ts ├── tsconfig.dev.json ├── tsconfig.json └── typings │ ├── 115.d.ts │ └── tampermonkey.d.ts ├── package.json ├── packages ├── civitai-helper │ ├── CHANGELOG.md │ ├── README.md │ ├── metablock.json │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── index.ts │ │ └── modules │ │ │ └── remove-rated-mask.ts │ └── tsconfig.json ├── copy-magnet-link │ ├── CHANGELOG.md │ ├── README.md │ ├── metablock.json │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── index.ts │ │ └── styles │ │ │ └── index.scss │ └── tsconfig.json ├── github-helper │ ├── CHANGELOG.md │ ├── README.md │ ├── metablock.json │ ├── package.json │ ├── rollup.config.js │ ├── src │ │ ├── index.ts │ │ ├── modules │ │ │ ├── update-count.ts │ │ │ └── zoom-image.ts │ │ ├── styles │ │ │ └── index.scss │ │ └── utils │ │ │ └── index.ts │ └── tsconfig.json ├── kill-watermark │ ├── CHANGELOG.md │ ├── README.md │ ├── metablock.json │ ├── package.json │ ├── rollup.config.js │ ├── scripts │ │ └── create-site.js │ ├── src │ │ ├── archived │ │ │ └── gaoding.com │ │ │ │ ├── index.css │ │ │ │ └── index.ts │ │ ├── index.ts │ │ └── sites │ │ │ ├── chat.360.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── docs.qq.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── feishu.cn │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── freebuf.com │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ ├── iqiyi.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── kdocs.cn │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── ke.qq.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── live.bilibili.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── so.csdn.net │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── v.qq.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ ├── v.youku.com │ │ │ ├── index.css │ │ │ └── index.ts │ │ │ └── yuque.com │ │ │ ├── index.css │ │ │ └── index.ts │ ├── tsconfig.json │ └── types │ │ └── index.d.ts └── remove-redirect │ ├── .gitignore │ ├── CHANGELOG.md │ ├── README.md │ ├── e2e │ ├── sites │ │ ├── 51cto.com.spec.ts │ │ ├── acgbox.link.spec.ts │ │ ├── afdian.com.spec.ts │ │ ├── baidu.com.spec.ts │ │ ├── bilibili.com.spec.ts │ │ ├── bing.com.spec.ts │ │ ├── bookmarkearth.cn.spec.ts │ │ ├── coolapk.com.spec.ts │ │ ├── csdn.net.spec.ts │ │ ├── douban.com.spec.ts │ │ ├── facebook.com.spec.ts │ │ ├── gitee.com.spec.ts │ │ ├── google.com.spec.ts │ │ ├── huaban.com.spec.ts │ │ ├── infoq.cn.spec.ts │ │ ├── jianshu.com.spec.ts │ │ ├── juejin.cn.spec.ts │ │ ├── kdocs.cn.spec.ts │ │ ├── ld246.com.spec.ts │ │ ├── leetcode.cn.spec.ts │ │ ├── nowcoder.com.spec.ts │ │ ├── oschina.net.spec.ts │ │ ├── qq.com.spec.ts │ │ ├── shimo.im.spec.ts │ │ ├── so.com.spec.ts │ │ ├── sogou.com.ts │ │ ├── sspai.com.spec.ts │ │ ├── steamcommunity.com.spec.ts │ │ ├── tencent.com.spec.ts │ │ ├── weibo.com.spec.ts │ │ ├── youtube.com.spec.ts │ │ ├── yuque.com.spec.ts │ │ └── zhihu.com.spec.ts │ └── utils │ │ ├── common.ts │ │ └── initGM.js │ ├── metablock.json │ ├── package.json │ ├── playwright.config.ts │ ├── rollup.config.js │ ├── scripts │ ├── create-site.js │ └── update-description.ts │ ├── src │ ├── index.ts │ ├── sites │ │ ├── 51cto.com.ts │ │ ├── acgbox.link.ts │ │ ├── afdian.com.ts │ │ ├── baidu.com.ts │ │ ├── bilibili.com.ts │ │ ├── bing.com.ts │ │ ├── bookmarkearth.cn.ts │ │ ├── coolapk.com.ts │ │ ├── csdn.net.ts │ │ ├── douban.com.ts │ │ ├── facebook.com.ts │ │ ├── gitee.com.ts │ │ ├── google.com.ts │ │ ├── huaban.com.ts │ │ ├── index.ts │ │ ├── infoq.cn.ts │ │ ├── instagram.com.ts │ │ ├── jianshu.com.ts │ │ ├── juejin.cn.ts │ │ ├── kdocs.cn.ts │ │ ├── ld246.com.ts │ │ ├── leetcode.cn.ts │ │ ├── nga.cn.ts │ │ ├── nowcoder.com.ts │ │ ├── oschina.net.ts │ │ ├── pixiv.net.ts │ │ ├── qq.com.ts │ │ ├── shimo.im.ts │ │ ├── so.com.ts │ │ ├── sogou.com.ts │ │ ├── sspai.com.ts │ │ ├── steamcommunity.com.ts │ │ ├── tencent.com.ts │ │ ├── twitter.com.ts │ │ ├── weibo.com.ts │ │ ├── youtube.com.ts │ │ ├── yuque.com.ts │ │ └── zhihu.com.ts │ └── utils │ │ └── index.ts │ ├── tsconfig.json │ └── types │ └── index.d.ts ├── pnpm-lock.yaml ├── pnpm-workspace.yaml ├── screenshots ├── access-link │ ├── 1.png │ ├── 2.png │ ├── 3.png │ └── 4.png └── imooc-helper │ └── 1.png ├── scripts └── create.js ├── shared ├── rollup-config │ ├── package.json │ ├── src │ │ └── index.js │ └── types │ │ └── index.d.ts ├── tsconfig │ ├── package.json │ └── tsconfig.json ├── types │ ├── gm_config.d.ts │ ├── index.d.ts │ ├── module.d.ts │ └── package.json └── utils │ ├── README.md │ ├── package.json │ ├── src │ ├── dom │ │ ├── attr.ts │ │ ├── constant.ts │ │ ├── index.ts │ │ └── intersection-observer.ts │ ├── gm │ │ └── index.ts │ ├── index.ts │ ├── is.ts │ ├── location.ts │ ├── request │ │ └── index.ts │ └── validate.ts │ └── tsconfig.json ├── tsconfig.json ├── tsconfig.legacy.json └── turbo.json /.changeset/README.md: -------------------------------------------------------------------------------- 1 | # Changesets 2 | 3 | Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works 4 | with multi-package repos, or single-package repos to help you version and publish your code. You can 5 | find the full documentation for it [in our repository](https://github.com/changesets/changesets) 6 | 7 | We have a quick list of common questions to get you started engaging with this project in 8 | [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) 9 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "fixed": [], 6 | "linked": [], 7 | "access": "restricted", 8 | "baseBranch": "master", 9 | "updateInternalDependencies": "patch", 10 | "ignore": ["legacy", "@femm/*", "@types/shared-types"] 11 | } 12 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | indent_size = 2 9 | indent_style = space 10 | insert_final_newline = true 11 | trim_trailing_whitespace = true 12 | 13 | [*.md] 14 | trim_trailing_whitespace = false 15 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # tampermonkey-scripts 贡献指南 2 | 3 | 你好!我真的很高兴您有兴趣为 tampermonkey-scripts 做出贡献。在提交您的贡献之前,请务必花点时间阅读以下指南: 4 | 5 | - [tampermonkey-scripts 贡献指南](#tampermonkey-scripts-贡献指南) 6 | - [问题反馈](#问题反馈) 7 | - [项目结构](#项目结构) 8 | - [开发环境](#开发环境) 9 | - [常用的 NPM 脚本](#常用的-npm-脚本) 10 | - [CHANGELOG 更新日志规范](#changelog-更新日志规范) 11 | - [commit message 规范](#commit-message-规范) 12 | 13 | ## 问题反馈 14 | 15 | 使用 创建 issues 16 | 17 | ## 项目结构 18 | 19 | - **srcipts**:项目脚本目录 20 | - `create.js`:用于创建新的油猴脚本库 21 | - **packages**:油猴脚本目录 22 | - **shared**:公共库目录 23 | - `rollup-config`:`rollup` 基础配置 24 | - `tsconfig`:`tsconfig.json` 基础配置 25 | - `types`:全局的类型注解(主要为油猴插件的全局方法) 26 | - **greasyfork**:修改的第三方库 27 | - **legacy**:老版本的脚本目录(可以忽略) 28 | 29 | ## 开发环境 30 | 31 | - [Node.js 版本 v18+](https://nodejs.org/zh-cn) 32 | - [pnpm v8+](https://pnpm.io/zh/cli/start) 33 | - [ni](https://github.com/antfu/ni)(可选) 34 | 35 | 在 clone 本仓库后,运行 36 | 37 | ```sh 38 | pnpm i 39 | ``` 40 | 41 | ### 常用的 NPM 脚本 42 | 43 | ```sh 44 | # 启动开发环境,构建生成 dist-dev 45 | pnpm run dev 46 | 47 | # 构建生成 dist 48 | pnpm run build 49 | 50 | # 创建新的油猴脚本 51 | pnpm run create-package 52 | ``` 53 | 54 | ### CHANGELOG 更新日志规范 55 | 56 | 在修改了 `packages` 目录下的代码后,需运行 57 | 58 | ```sh 59 | pnpm run changeset 60 | ``` 61 | 62 | 1. 选择脚本 63 | 2. `feat`:选择 `minor`;其他选 `patch` 64 | 65 | 最后在 `.changeset` 下生成的文件需提交到 `git` 66 | 67 | ### commit message 规范 68 | 69 | > `git commit message` 的格式 70 | 71 | ```sh 72 | (): 73 | 74 | 75 | 76 |