Browser Extension · Chrome / Edge MV3

Bilibili-At-Guard

Auto-hide @-mention comment spam on bilibili video pages — and manage every hidden comment from a side panel.

License MITPlatform Chrome · Edge (MV3)Minimum Chrome / Edge 116+Code Plain ES2020 JS · no build step
Features

What it does

A Chrome/Edge (Manifest V3) extension built to counter spam generated by auto-comment plugins such as dsh-bili-scroll: any root comment containing an @-mention is hidden in place. Every hidden comment is managed from a dark side panel — restore, whitelist, delete (as the uploader), block the sender, or report to bilibili.

🛡️

@-mention filter

Any root comment containing an @-mention is hidden in place — detected via space.bilibili.com mention links with a text-level @name fallback; a chip above the comment area shows the hidden count. Sub-replies (楼中楼) are always exempt.

🌑

Dark-mode side panel

A chrome.sidePanel manager (Chrome/Edge 116+) groups hidden comments by video with restore, whitelist, delete, block and report actions; it live-updates via storage events and destructive actions need an explicit confirm click.

📌

Uploader mode

On your own videos the panel offers Delete (uploader permission verified server-side); on other people's videos it offers Block. Both buttons are always shown where applicable.

🚩

One-click report

Send a captured comment to bilibili with a selectable reason (spam / flooding / off-topic); already-reported comments are marked and can't be re-reported.

🏷️

Mark as spam & UID export

Flag comments as spam, then export the flagged commenters' mids in one click and reuse them as a UID rule to hide those users' comments everywhere.

⚙️

Custom rules & self exemption

Optional keyword (substring), JS regex and UID (mid list) rules with a test box. Your own @-mention comments are never hidden.

🩺

Diagnostics & legacy fallback

Settings → diagnose current tab reports probe status, matched units and any missing rpid/mid extractions; if bilibili's web-component comment area is absent, the classic .reply-item DOM is scanned as a fallback.

Quick Start

Load the extension

  1. Download the release zip from GitHub Releases and unzip it.
  2. Open chrome://extensions (Chrome) or edge://extensions (Edge).
  3. Enable Developer mode, then Load unpacked and select the unzipped folder.
  4. Pin the extension and open any bilibili.com/video/BV… page — hidden comments get a clickable chip.
shell — dev only
# No build step — plain ES2020-compatible JavaScript
# Regenerate icons from the source image (optional):
python tools/gen_icons_from_image.py
浏览器扩展 · Chrome / Edge MV3

项目简介

Chrome/Edge(Manifest V3)扩展,针对 dsh-bili-scroll 这类自动评论插件生成的垃圾内容:所有含 @提及 的根评论就地隐藏,并在暗色侧边栏统一管理每一条——恢复、白名单、以 UP 主身份删除、拉黑或举报。

🛡️

@提及过滤

任何含 @提及 的根评论就地隐藏:通过 space.bilibili.com 提及链接识别,并以文本级 @名字 模式兜底;评论区上方 chip 显示隐藏条数。楼中楼回复一律豁免。

🌑

暗色侧边栏

chrome.sidePanel 管理面板(Chrome/Edge 116+)按视频分组展示被隐藏评论,支持恢复、白名单、删除、拉黑与举报,通过 storage 事件实时更新;破坏性操作需二次点击确认。

📌

UP主模式

自己的视频上提供删除(UP 主权限由服务端校验);他人视频上提供拉黑。两种按钮在适用处均会显示。

🚩

一键举报

将捕获的评论举报给 B 站,理由可选(垃圾广告 / 刷屏 / 内容不相关);已举报过的评论会标记且不再重复举报。

🏷️

标注垃圾与 UID 导出

把评论标注为垃圾后一键导出其作者的 mid 列表,作为 UID 规则让这些用户的评论全域隐藏。

⚙️

自定义规则与自我豁免

可选关键词(子串)、JS 正则与 UID(mid 列表)规则,附测试框。你自己发的含 @ 评论永不会被隐藏。

🩺

诊断与旧版兜底

设置 → 诊断当前标签页,报告探针状态、识别到的评论单元数与 rpid/mid 缺失情况;若 B 站 web components 评论区缺失,回退扫描经典 .reply-item DOM。

  1. 下载 GitHub Releases 页的 release zip 并解压。
  2. 打开 chrome://extensions(Chrome)或 edge://extensions(Edge)。
  3. 开启开发者模式,点击加载已解压的扩展程序并选择解压出的文件夹。
  4. 固定扩展,打开任意 bilibili.com/video/BV… 页面——被隐藏评论上方会出现可点击的 chip。
shell — dev only
# No build step — plain ES2020-compatible JavaScript
# Regenerate icons from the source image (optional):
python tools/gen_icons_from_image.py