Skip to content
Projects

About

Bilibili browser extension: uses large language models to detect embedded ads in Bilibili videos. Skip embedded and spoken ads in videos with one click. Block AI comments.

Design & Media

How these counts are measured

Measured star growth

in 24h
-1
in 7 days
+11
in 15 days
+14
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

VideoAdGuard

VideoAdGuard icon

Skip embedded ads and manage suspected AI-written scripts and comments on Bilibili.

Project website · vag.xiaobaozi.cn

version license TypeScript Bilibili

Feature overview · Install · Quick start · Sending feedback · User guide · 中文

Install the Edge extension Install the Chrome extension Install the Firefox extension

https://github.com/user-attachments/assets/e0c67cae-95e4-49bf-9cf4-72d201c9a7f4

View the GIF preview

Animated VideoAdGuard demo

If VideoAdGuard saves you time skipping ads and filtering content, star the project to help other Bilibili viewers find it.

VideoAdGuard is a browser extension for Bilibili. It detects embedded ads, marks them on the progress bar, and lets you skip them. It also lets you label video scripts and filter suspected AI-written comments.

Feature overview

Screenshots

Video card Watch page
Bilibili video card with a detected ad badge in the top-left corner
A badge on the video card shows that an embedded ad was detected.
Bilibili watch page with an AI writing score, a marked ad segment, and a skip button
On the watch page, the progress bar marks the ad segment and the video information shows the AI writing score.

Feedback examples

The ad feedback guide shows the player, how to report an inaccurate result, and how to adjust an ad segment before submitting it
Ad detection and skipping
Find embedded ads on the progress bar. Skip a segment, adjust its timing, or report an inaccurate result.
Open the script label menu and select a label to update it immediately
AI-written video scripts
Label a video script as suspected AI-written or non-AI-written from the video information area.
Open the comment menu and mark a suspected AI comment to collapse the author's comments
AI comment filtering
Mark a suspected AI comment from Bilibili's comment menu to collapse it immediately.

Why use VideoAdGuard?

  • Skip embedded ads. Find ad segments from subtitles and skip them manually or automatically.
  • Detect ads in videos without subtitles. Enable Groq Whisper to transcribe the audio for detection.
  • See feedback take effect immediately. Changes to ad segments, script labels, and comment filtering appear on the page when you submit them.
  • Reuse community results. Detection results and feedback sync in the background to reduce repeat detections and reports.
  • Choose your model. The extension supports OpenAI-compatible, Anthropic-compatible, System One, and custom Fetch endpoints, including local models through Ollama, LM Studio, and vLLM.
  • Choose what to filter. Ad detection and AI detection have separate switches. You can keep ad skipping on with AI comment filtering off.
  • Allowlist trusted creators. Add creators to the allowlist to skip detection on their videos.

Install

Browser extension

Browser Install from
Microsoft Edge Edge Add-ons
Google Chrome Chrome Web Store
Firefox Firefox Add-ons

Extension settings

VideoAdGuard extension settings for detection, model configuration, and speech recognition

Quick start

  1. Install the extension and click the VideoAdGuard icon in the browser toolbar.
  2. Select a model API and enter its API key and model name.
  3. Open a Bilibili video. Ad detection, AI script detection, and comment filtering follow your settings.
  4. When an ad is detected, the player shows Skip ad (跳过广告) in the lower-right corner and marks the ad segment on the progress bar.

For a walkthrough of the interface, see the user guide.

Sending feedback

Ad detection

  • When detection finishes and an ad is found, Skip ad (跳过广告) appears in the lower-right corner of the player.
  • Click a red segment on the progress bar to enable or disable it. Drag either edge to change its start or end time, or drag the middle to move the entire segment.
  • Click ✗ without adjusting the segment to report an inaccurate result.
  • Adjust the segment first, then click ✗ to share the corrected timing with the community.

AI-written video scripts

  • Click Label (标注) in the video information area.
  • Select Suspected AI-written (疑似 AI 文案) or Non-AI-written (非 AI 文案). The label appears immediately, and the submission syncs in the background.
  • Click Edit (修改) to change the label for the current part of the video.

AI comments

  • Open the ⋯ menu next to the comment you want to mark.
  • Choose Suspected AI comment (疑似 AI 评论). The comment collapses immediately. You can submit in two clicks without signing in or entering a reason or account ID.
  • The first valid report adds the author to the shared list. Other users automatically filter that author's comments once their copy of the list syncs.

All three forms of feedback update the page immediately and submit in the background.

Recent updates

  • v2.0.0
    • Bilibili video cards can show ad badges and AI writing scores. You can also label video scripts from the watch page.
    • Mark a suspected AI comment from Bilibili's comment menu to collapse the author's comments immediately. The first valid report adds the author to the shared list.
    • Ad detection and AI detection have separate switches. For videos without subtitles, both ad detection and AI script detection can use the same Groq Whisper transcript.
    • Ad detection and AI script results are cached for each video part. Ad markers and skip controls are restored when the player reloads.
    • Ad, script, and comment feedback take effect immediately and sync in the background. API keys are encrypted locally, and the new user guide illustrates each feedback flow.
  • v1.4.3 adds System One model support and compatibility with more Bilibili video pages.
  • v1.4.0 adds shared detection results and user feedback.
  • v1.3.0 restructures the model integration to support more models and Coding Plans.
  • v1.2.9–v1.2.11 add manual controls for ad segments and fix known issues.

API configuration

Ad detection and AI script detection require a language model API. Choose a model that can handle long text for more reliable results.

API type Example providers
OpenAI-compatible OpenAI, Zhipu AI, MiniMax, Kimi, DeepSeek, SiliconFlow, Alibaba Cloud Model Studio, Volcengine Ark, StepFun, Baidu AI Cloud Qianfan, 302.AI
Anthropic-compatible Claude, Zhipu AI, MiniMax, Tencent Cloud, Alibaba Cloud, Volcengine, Baidu AI Cloud Qianfan
System One TypeSafe, Vercel AI Gateway, OpenCode Console, Volcengine Ark, Modelink, Right Code
Custom Fetch Ollama, LM Studio, vLLM, llama.cpp, LocalAI, Xinference, FastChat, Jan, One API

For local models served by Ollama, you can set OLLAMA_ORIGINS=* if you run into cross-origin access errors.

View System One providers and speech recognition settings

System One

Select System One from the SDK menu. Choose the provider's base URL, then enter its API key and model name.

Provider Base URL Default model API documentation
TypeSafe https://api.typesafe.ai/v1 jev-latest System One API
Vercel AI Gateway https://ai-gateway.vercel.sh/typesafe/v1 typesafe-ai/jev Compatible API
OpenCode Zen https://opencode.ai/inference/systemone/v1 jev-1.13 Models and APIs
Volcengine Ark https://ark.cn-beijing.volces.com/api/v1 doubao-seed-2-1-lite-260915 System One API
Modelink https://api.qnaigc.com/v1 jev-latest Jev API
Right Code https://www.rightapi.ai/v1 jev-latest Jev API

Speech recognition API

Enable Groq Whisper to transcribe videos without subtitles. Your API key stays in the extension's local settings and is never sent to the VideoAdGuard server.

If your network cannot reach Groq directly, the extension settings let you use a proxy when the official endpoint fails.

Privacy and data

  • The extension stores API keys locally and never sends them to the VideoAdGuard server.
  • The shared service receives detection results and the data needed to process feedback you submit.
  • Subtitles and audio can be processed on your own device when you use a local model such as Ollama, LM Studio, or vLLM.
  • See the privacy policy for details.

Build from source

git clone https://github.com/ZeroTang05/VideoAdGuard.git
cd VideoAdGuard
npm install
npm run build

Build output is written to builds/.

Contributing and feedback

When reporting a problem, include your browser version, extension version, and any relevant console errors or screenshots from the browser developer tools.

Find backend API requests

Where to inspect backend API requests in browser developer tools

Contributors

License

VideoAdGuard is open source under the GPL-2.0 license.

Star History

Explore related projects

Loading…