{"id":13429897,"url":"https://github.com/festoney8/bilibili-cleaner","last_synced_at":"2026-06-14T00:06:33.842Z","repository":{"id":214489737,"uuid":"716834298","full_name":"festoney8/bilibili-cleaner","owner":"festoney8","description":"bilibili 页面净化大师，深度净化 B 站，优化功能，过滤视频 / 评论 / 动态","archived":false,"fork":false,"pushed_at":"2026-06-03T08:23:06.000Z","size":16456,"stargazers_count":873,"open_issues_count":10,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-06-03T10:07:19.685Z","etag":null,"topics":["bilibili","greasemonkey","greasyfork","tampermonkey","userscript","violentmonkey"],"latest_commit_sha":null,"homepage":"https://greasyfork.org/zh-CN/scripts/479861","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/festoney8.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-11-10T01:08:50.000Z","updated_at":"2026-06-02T13:23:58.000Z","dependencies_parsed_at":"2024-03-09T10:32:57.195Z","dependency_job_id":"43382cc1-bce8-495f-bab7-c383f46ce134","html_url":"https://github.com/festoney8/bilibili-cleaner","commit_stats":null,"previous_names":["festoney8/bilibili-cleaner"],"tags_count":137,"template":false,"template_full_name":null,"purl":"pkg:github/festoney8/bilibili-cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/festoney8%2Fbilibili-cleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/festoney8%2Fbilibili-cleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/festoney8%2Fbilibili-cleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/festoney8%2Fbilibili-cleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/festoney8","download_url":"https://codeload.github.com/festoney8/bilibili-cleaner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/festoney8%2Fbilibili-cleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34304656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bilibili","greasemonkey","greasyfork","tampermonkey","userscript","violentmonkey"],"created_at":"2024-07-31T02:00:47.406Z","updated_at":"2026-06-14T00:06:33.836Z","avatar_url":"https://github.com/festoney8.png","language":"TypeScript","funding_links":[],"categories":["篡改猴脚本"],"sub_categories":["全站脚本"],"readme":"\u003cdiv align=\"center\"\u003e\n\u003cimage src=\"./images/logo.png\" height=\"100\"\u003e\u003c/image\u003e\n\u003ch1\u003ebilibili 页面净化大师\u003c/h1\u003e\n\u003ca href=\"https://greasyfork.org/zh-CN/scripts/479861\"\u003e\u003cimg alt=\"Greasyfork Version\" src=\"https://img.shields.io/greasyfork/v/479861?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://greasyfork.org/zh-CN/scripts/479861\"\u003e\u003cimg alt=\"Downloads Total\" src=\"https://img.shields.io/greasyfork/dt/479861?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://greasyfork.org/zh-CN/scripts/479861\"\u003e\u003cimg alt=\"Downloads Per Day\" src=\"https://img.shields.io/greasyfork/dd/479861?style=flat-square\"\u003e\u003c/a\u003e\n\u003ca href=\"https://greasyfork.org/zh-CN/scripts/479861\"\u003e\u003cimg alt=\"Rating\" src=\"https://img.shields.io/greasyfork/rating-count/479861?style=flat-square\"\u003e\u003c/a\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n[安装使用](#安装) / [功能介绍](#功能介绍) / [浏览器适配](#浏览器适配) / [净化效果](#净化效果对比) / [插件兼容](#与其他-bilibili-插件的兼容性) / [数据备份](#数据导入与导出)\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003c/div\u003e\n\n## 功能：页面净化优化、视频/评论/动态过滤\n\n- **页面净化优化**：净化顶栏、视频列表、播放器、评论区等，去除无用元素，优化部分功能\n\n- **视频过滤**：根据时长、UP 主、标题关键词、BV 号等筛选视频推荐\n\n- **评论过滤**：根据用户名、关键词、评论类型、用户等级筛选评论\n\n- **动态过滤**：根据用户名、视频标题等筛选动态\n\n![](images/preview.png)\n\n## 安装\n\n### 前提：允许运行用户脚本\n\n- Edge 打开网址 `edge://extensions/`，在左侧启用 \"开发人员模式\"，重启浏览器\n- Firefox 无需操作\n- Chrome 操作如图\n    1. 右键单击脚本管理器（暴力猴/篡改猴/脚本猫）\n    2. 点击 \"管理扩展程序\"\n    3. 若出现 \"允许运行用户脚本\" 选项，启用它\n    4. 启用 \"开发者模式\"\n    5. 重启浏览器\n\n        ![](images/how-to-install-on-chrome.png)\n\n### 版本选择\n\n浏览器和脚本管理器需满足 [**浏览器适配**](#浏览器适配) 要求\n\n| **更新源**   | **链接**                                                                                                         | **介绍**               |\n| ------------ | ---------------------------------------------------------------------------------------------------------------- | ---------------------- |\n| Greasyfork   | [前往 Greasyfork 安装](https://greasyfork.org/zh-CN/scripts/479861)                                              | 稳定版                 |\n| Github       | [点击安装](https://raw.githubusercontent.com/festoney8/bilibili-cleaner/release/bilibili-cleaner.github.user.js) | 测试版                 |\n| JSDelivr CDN | [点击安装](https://cdn.jsdelivr.net/gh/festoney8/bilibili-cleaner@release/bilibili-cleaner.jsdelivr.user.js)     | 测试版，解决连接性问题 |\n\n## 使用\n\n\u003e [!CAUTION]\n\u003e\n\u003e - **如果启用了大量功能、或屏蔽了大量内容，请定期备份**\n\u003e - **更换电脑或浏览器务必备份，[备份方法](#数据导入与导出)**\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e - **重要：下列页面均有独立菜单，不同页面菜单不同，请在相应页面打开菜单进行设置**\n\u003e - **页面净化优化：**「首页、播放页、番剧播放页、直播间、搜索页、动态页、热门页、分区页」\n\u003e - **视频过滤：**「首页、播放页、搜索页、热门页、分区页、空间页」\n\u003e - **评论过滤：**「播放页、番剧播放页、动态页、空间页」\n\u003e - **动态过滤：**「动态页」\n\u003e - **快捷按钮：** 显示在页面角落的快捷组件，需手动启用\n\u003e - **夜间模式开关：** 快速切换日间、夜间模式\n\n![](images/usage.png)\n\n## 功能介绍\n\n### 1. 页面净化\n\n- 净化新版 bilibili 网页，默认用户已登录，大会员体验最佳\n- 混搭各种功能，调节浏览器缩放比例，可得到满意的页面效果\n- 不做老版本页面适配，不做未登录状态适配\n- 已知问题：\n    - 给 UP 主充电时，若出现 **充电窗口载入失败 (报错NaN)**，请关闭通用项「URL参数净化」，刷新页面再充电\n    - 特殊活动直播，调节脚本设置后需刷新页面才生效，弹幕净化不生效\n\n### 2. 视频过滤\n\n- **每个页面有独立的功能开关，但标题关键词黑、白名单全站共用一份**\n- **白名单权限高于黑名单，命中白名单的视频不会被隐藏**\n- 启用 UP 主过滤后，右键单击 UP 主即可屏蔽\n- 启用 BV 号过滤后，右键单击视频标题即可屏蔽\n- 「标题关键词过滤」和「标题关键词白名单」大小写不敏感，均支持正则\n- 正则用 `/ ... /` 括起来，如：`/abc|\\d+/`，无需flag（默认`ius`模式，大小写不敏感，支持跨行）\n- 视频过滤在带 `index.html` 后缀的首页不生效，请使用无后缀首页 https://www.bilibili.com/\n\n\u003e [!NOTE]\n\u003e\n\u003e - **时长过滤不宜过长，推荐 60~90 秒**，否则会错过优质视频\n\u003e - **关键词不宜过于简单**，可能造成误伤，屏蔽过多视频影响浏览体验\n\u003e - **编写正则要慎重**，可能造成大量视频屏蔽和频繁载入\n\u003e - **编写白名单注意影响范围**，白名单权限高，可能会让不喜欢的视频出现\n\u003e - **屏蔽后，如果视频没有消失，很可能命中了白名单**\n\u003e - 你不喜欢的低创 UP 主可能在「热门视频、每周必看、排行榜」出没，记得去热门页屏蔽一波\n\u003e - 遇到喜欢的高质量 UP 主，可以顺手加入白名单\n\u003e - 这里有一些常见标题关键词整理：[查看](./NOTE.md)\n\n### 3. 评论过滤\n\n- 启用用户名过滤后，在评论区右键单击用户名即可屏蔽\n- 关键词黑名单大小写不敏感。正则语法：`/abc|\\d+/`，无需flag（默认`ius`模式，大小写不敏感，支持跨行）\n- **白名单权限高于黑名单，命中白名单的评论不会被隐藏**\n- **关键词不宜过于简单**，会误伤很多评论\n- **编写正则要慎重**，可能造成大量评论屏蔽和频繁载入\n- **屏蔽后，如果评论没有消失，很可能命中了白名单**\n\n## 浏览器适配\n\n### Chrome / Edge 等 Chromium 内核浏览器\n\n- **要求 Chromium 内核版本 \u003e= 105**，内核版本过低会导致大量功能失效，如：无法净化顶栏\n\n### Firefox\n\n- **Firefox 103~120，开启高级设定**\n    - 打开网址 [about:config](about:config)，若出现风险提示，点击「接受风险并继续」\n    - 搜索 `layout.css.has-selector.enabled` ，将这一项的开关改为 `true`，并刷新网页\n- **Firefox \u003e= 121，无需修改设定**\n\n### Safari\n\n- 要求 Safari 版本 \u003e= 15.4\n- 未测试功能可用性\n\n### 移动端\n\n- 本插件专注 PC 端网页，不做移动端网页适配\n- 若强行使用，建议 Firefox/Edge 手机版 + 篡改猴扩展\n\n### 脚本管理器\n\n| 脚本管理器                                                 | 是否支持 | MV3 标准 | 备注                             |\n| ---------------------------------------------------------- | -------- | -------- | -------------------------------- |\n| [Tampermonkey (篡改猴)](https://www.tampermonkey.net/)     | ✔️       | ✔️       | 完全测试，推荐                   |\n| [Violentmonkey (暴力猴)](https://violentmonkey.github.io/) | ✔️       | ❌️       | 完全测试，高版本 Chrome 无法运行 |\n| [ScriptCat (脚本猫)](https://docs.scriptcat.org/)          | ✔️       | ✔️       | 部分测试                         |\n| Greasemonkey                                               | ❌️       | ❌️       | 未测试                           |\n| Stay                                                       | ❌️       | ❌️       | 无法运行                         |\n\n## 净化效果对比\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e展开查看\u003c/b\u003e\u003c/summary\u003e\n\n![](images/screenshot-filter.webp)\n\n![](images/screenshot-video.webp)\n\n![](images/screenshot-homepage.webp)\n\n![](images/screenshot-dynamic.webp)\n\n![](images/screenshot-popular.webp)\n\n\u003c/details\u003e\n\n## 与其他 bilibili 插件的兼容性\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e展开查看\u003c/b\u003e\u003c/summary\u003e\n\n### 1. 与 [Bilibili-Evolved](https://github.com/the1812/Bilibili-Evolved) 的兼容性\n\n- 绝大多数功能兼容，小部分功能重复，均不会产生崩坏\n\n- **隐藏首页banner**\n    - 使用「Evolved 夜间模式」时，开启 Evolved 的「隐藏顶部横幅」，关闭本脚本的「隐藏 banner」\n    - 使用「Evolved 顶栏」时，开启 Evolved 的「隐藏顶部横幅」，关闭本脚本的「隐藏 banner」\n    - 不使用「Evolved 顶栏」时，关闭 Evolved 的「隐藏顶部横幅」，开启本脚本的「隐藏 banner」\n\n- **清爽首页、极简首页** 会接管首页布局，本脚本对其无效\n\n### 2. 与 [Bilibili-Gate](https://github.com/magicdawn/bilibili-gate) 的兼容性\n\n- **兼容**，Bilibili-Gate 自带 UP 主黑名单、标题关键词过滤，在首页无需使用本插件的过滤功能\n\n### 3. 与 [Bilibili 旧播放页](https://github.com/MotooriKashin/Bilibili-Old) 的兼容性\n\n- **不兼容**，旧播放页脚本完全接管页面，使用该脚本时请在脚本管理器中关闭本净化脚本，以免造成干扰\n\n### 4. 与 [Pakku.js](https://github.com/xmcp/pakku.js) 的兼容性\n\n- **兼容**，推荐搭配使用\n\n### 5. 与 [BewlyBewly](https://github.com/hakadao/BewlyBewly) 的兼容性\n\n- 不兼容 BewlyBewly 新版首页\n- 兼容 BewlyBewly 使用原版 B 站首页\n\n\u003c/details\u003e\n\n## 数据导入与导出\n\n- 更换电脑或浏览器时，需全选油猴插件内所有脚本，一并导出数据，在另一设备恢复\n- TamperMonkey 和 ViolentMonkey 插件的同步脚本功能只能同步代码，但不同步数据，同步数据请使用导入导出或云端备份功能\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e导出数据\u003c/b\u003e\u003c/summary\u003e\n\n![](images/how-to-export.png)\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e导入数据\u003c/b\u003e\u003c/summary\u003e\n\n![](images/how-to-import.png)\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e备份数据到云端\u003c/b\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n- 这一操作将备份 TamperMonkey 内所有脚本代码及其本地数据到云端\n- 点击 **显示备份** 按钮查看历史备份\n- ViolentMonkey 插件无这一功能，只支持备份到本地\n\n![](images/how-to-backup-to-cloud-drive.png)\n\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e复制 JSON 数据\u003c/b\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n- 可通过开启插件管理器的高级模式，复制脚本 JSON 数据，可用于保存或快速在另一设备导入\n- 请勿在未知后果的情况下编辑 JSON 数据\n\n![](images/how-to-edit-1.png)\n![](images/how-to-edit-2.png)\n![](images/how-to-edit-3.png)\n\n\u003c/details\u003e\n\n## 鸣谢\n\n- [vite-plugin-monkey](https://github.com/lisonge/vite-plugin-monkey)\n- [vue.js](https://vuejs.org/)\n- [vueuse](https://github.com/vueuse/vueuse)\n- [pinia](https://github.com/vuejs/pinia)\n- [tailwindcss](https://github.com/tailwindlabs/tailwindcss)\n- [headlessui](https://github.com/tailwindlabs/headlessui)\n\n## 开发\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e展开查看\u003c/b\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n- 分支介绍\n    - main 分支只用于发布测试版和稳定版\n    - dev 分支用于开发，可 PR 到本分支\n    - release 分支由 CI 管理，用于存储 Github/JSDelivr 源\n\n- 环境要求\n    - node.js \u003e= 24\n    - pnpm \u003e= 11.6\n    - 使用新版 Chrome / Edge / Firefox，安装 tampermonkey 或 violentmonkey\n\n- 编译运行\n    1. clone 项目，`pnpm i` 安装依赖\n    2. 使用 `pnpm dev` 进入 dev 模式，会自动打开浏览器安装开发用脚本（由 vite-plugin-monkey 控制）\n        - dev 模式下，修改 vue/scss 代码并保存时可实时生效，修改 typescript 会触发页面自动刷新\n    3. 使用 `pnpm build` 构建，产物在 `dist` 文件夹内\n\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffestoney8%2Fbilibili-cleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffestoney8%2Fbilibili-cleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffestoney8%2Fbilibili-cleaner/lists"}