{"id":38503147,"url":"https://github.com/codertesla/bilibili-1-click-blocker","last_synced_at":"2026-06-05T07:00:33.261Z","repository":{"id":281652498,"uuid":"945960963","full_name":"codertesla/bilibili-1-click-blocker","owner":"codertesla","description":"油猴脚本：B站首页和视频页一键拉黑UP主","archived":false,"fork":false,"pushed_at":"2026-05-30T06:07:32.000Z","size":501,"stargazers_count":14,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-30T08:07:19.354Z","etag":null,"topics":["bilibili","greasemonkey","userscript"],"latest_commit_sha":null,"homepage":"https://greasyfork.org/scripts/529390","language":"JavaScript","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/codertesla.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2025-03-10T11:55:53.000Z","updated_at":"2026-05-30T06:07:27.000Z","dependencies_parsed_at":"2025-07-08T06:15:04.870Z","dependency_job_id":"19072eba-05e2-46db-925a-49a1408ced88","html_url":"https://github.com/codertesla/bilibili-1-click-blocker","commit_stats":null,"previous_names":["codertesla/bilibili-1-click-blocker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/codertesla/bilibili-1-click-blocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codertesla%2Fbilibili-1-click-blocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codertesla%2Fbilibili-1-click-blocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codertesla%2Fbilibili-1-click-blocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codertesla%2Fbilibili-1-click-blocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codertesla","download_url":"https://codeload.github.com/codertesla/bilibili-1-click-blocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codertesla%2Fbilibili-1-click-blocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33932048,"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-05T02:00:06.157Z","response_time":120,"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","userscript"],"created_at":"2026-01-17T06:03:23.995Z","updated_at":"2026-06-05T07:00:33.251Z","avatar_url":"https://github.com/codertesla.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bilibili 1-Click Blocker\n\n[![安装脚本](https://img.shields.io/badge/安装脚本-Greasy%20Fork-red.svg?style=for-the-badge\u0026logo=tampermonkey)](https://greasyfork.org/zh-CN/scripts/529390-B站首页和视频页一键拉黑UP主)\n[![GitHub](https://img.shields.io/badge/GitHub-仓库-blue.svg?style=for-the-badge\u0026logo=github)](https://github.com/codertesla/bilibili-1-click-blocker)\n[![License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://github.com/codertesla/bilibili-1-click-blocker/blob/main/LICENSE)\n\nB 站一键拉黑 UP 主脚本。把“拉黑”按钮放到首页推荐、搜索结果、视频详情页以及视频页右上角 UP 主信息区域，点击后调用 B 站官方黑名单接口，并立即移除当前页面里的相关视频卡片。\n\n## 功能\n\n- 一键拉黑 UP 主：支持首页推荐、搜索结果、视频详情页作者区、视频详情页右上角 UP 主信息区。\n- 即时清理页面：拉黑成功后自动移除当前页面中同一 UP 主的视频卡片。\n- 广告过滤：默认屏蔽首页广告卡片，并过滤视频播放页右上角广告内容。\n- 首页隐藏直播：可在油猴菜单中开启或关闭。\n- 官方黑名单同步：直接写入 B 站账号黑名单，移动端和其他终端同步生效。\n- 亮色/暗色主题适配：按钮样式会跟随 B 站主题显示。\n\n## 安装\n\n1. 安装脚本管理器：[Tampermonkey](https://www.tampermonkey.net/) 或 [Violentmonkey](https://violentmonkey.github.io/)。\n2. 打开 Greasy Fork 页面安装脚本：[B站一键拉黑UP主](https://greasyfork.org/zh-CN/scripts/529390-B站首页和视频页一键拉黑UP主)。\n3. 刷新 B 站页面后生效。\n\n## 效果展示\n\n| 首页拉黑 | 视频详情页拉黑 |\n| :--- | :--- |\n| ![首页拉黑示例](https://raw.githubusercontent.com/codertesla/bilibili-1-click-blocker/main/screenshots/homepage.avif) | ![视频详情页拉黑示例](https://raw.githubusercontent.com/codertesla/bilibili-1-click-blocker/main/screenshots/videopage.avif) |\n\n## 菜单配置\n\n点击浏览器右上角的油猴插件图标，在本脚本菜单中可以使用：\n\n- 去管理黑名单：查看已拉黑人数，并跳转到 B 站官方黑名单管理页。\n- 首页隐藏直播卡片：开启或关闭首页直播内容隐藏。\n- 屏蔽首页广告卡片：开启或关闭推荐页商业广告过滤。\n\n## 注意事项\n\n- 必须登录 B 站账号。脚本调用 B 站官方接口，未登录或登录过期时无法拉黑。\n- 拉黑是账号维度操作，会同步影响移动端 App 和其他终端。\n- 当前页面的视频卡片会立即移除，但 B 站推荐缓存可能有延迟；刷新页面或稍等片刻即可。\n- 本脚本不兼容 [BewlyBewly](https://github.com/BewlyBewly/BewlyBewly)。该插件大幅修改 B 站 DOM 结构，适配和测试成本较高，当前不再维护兼容逻辑。\n\n## 常见问题\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e拉黑后多久生效？\u003c/b\u003e\u003c/summary\u003e\n\nAPI 操作即时生效。脚本会立即清理当前页面中可识别的相关卡片；如果刷新后仍然看到，通常是 B 站服务端推荐缓存延迟。\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e如何取消拉黑？\u003c/b\u003e\u003c/summary\u003e\n\n在脚本菜单点击“去管理黑名单”，或直接访问 B 站官方 [黑名单管理页面](https://account.bilibili.com/account/blacklist)。\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003e为什么有些广告没有被屏蔽？\u003c/b\u003e\u003c/summary\u003e\n\n脚本主要通过广告标识和常见广告容器识别推广内容。若 B 站更换结构或隐藏标识，可能需要更新规则。\n\u003c/details\u003e\n\n## 更新日志\n\n- v1.3.5 (2026-06-05)：更新 README 和效果截图，补充视频页右上角 UP 主信息区的一键拉黑说明。\n- v1.3.4 (2026-06-03)：修复初始化阶段过早修改 B 站 DOM，导致评论、推荐视频封面和列表链接等异步内容载入异常的问题。\n- v1.3.3 (2026-05-30)：优化初始化处理时机，页面已有内容会立即处理，并保留延迟兜底以兼容 B 站异步渲染。\n- v1.3.1 (2026-05-30)：适配新版视频页右上角 UP 主信息面板，在 UP 主名称右侧新增一键拉黑按钮。\n- v1.2.5 (2026-01-26)：移除 BewlyBewly 适配功能。\n- v1.2.4 (2026-01-25)：优化拉黑按钮配色，新增 B 站亮/暗主题自适应支持。\n- v1.2.3 (2026-01-15)：增强广告屏蔽能力，新增视频播放页右上角广告卡片屏蔽功能。\n- v1.2.2 (2026-01-11)：新增屏蔽首页广告卡片功能，默认开启。\n- v1.2.1 (2026-01-05)：新增首页隐藏直播卡片功能，支持菜单动态开关。\n- v1.1.4 (2025-03-11)：新增对 B 站搜索结果页的支持。\n- v1.0.0 (2025-03-10)：初始版本发布。\n\n## 反馈\n\n- GitHub Issues：[提交 BUG 或建议](https://github.com/codertesla/bilibili-1-click-blocker/issues)\n- Greasy Fork：[反馈区](https://greasyfork.org/zh-CN/scripts/529390-B站首页和视频页一键拉黑UP主/feedback)\n\n项目灵感源自 Greasy Fork 脚本 ID 526549，并在此基础上进行了修复与功能扩展。\n\n**免责声明**：本脚本仅供学习和个人使用。使用本脚本产生的任何后果由用户自行承担。\n\n[![Star History Chart](https://api.star-history.com/svg?repos=codertesla/bilibili-1-click-blocker\u0026type=Date)](https://star-history.com/#codertesla/bilibili-1-click-blocker\u0026Date)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodertesla%2Fbilibili-1-click-blocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodertesla%2Fbilibili-1-click-blocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodertesla%2Fbilibili-1-click-blocker/lists"}