B站动态关键词屏蔽器

高效快速地隐藏B站动态中的广告内容

Author
pydroid
Daily installs
0
Total installs
1
Ratings
0 0 0
Version
2025-06-18.1
Created
2025-07-04
Updated
2025-07-04
Size
3.48 KB
License
MIT
Applies to

Bilibili Dynamic Feed Keyword Blocker / B站动态关键词屏蔽器

是否厌倦了B站动态时间线(t.bilibili.com)中夹杂的各种“恰饭”推广和广告内容?本脚本为您提供了一个简洁、轻量且极致高效的 关键词屏蔽 方案,还您一个纯净的动态首页。

它通过一个可自定义的关键词列表,自动识别并隐藏包含广告内容的动态,让您能更专注于您所关注的UP主创作的内容。

✨ 功能特性

  • 极致性能: 采用现代化的 MutationObserver 技术,实时监测并隐藏新增的广告动态(包括向下滚动加载的内容),对浏览器性能影响微乎其微。
  • 关键词屏蔽: 根据动态文本内容进行关键词匹配,精准隐藏整个广告动态卡片,把过滤的主动权交给你。
  • 轻松自定义: 您可以非常方便地编辑脚本,添加或删除关键词,打造专属的过滤规则。
  • 纯粹专注: 无需任何复杂设置,即装即用,安静地为您净化动态环境。

🔧 如何自定义关键词

  1. 进入 Tampermonkey (油猴) 的“管理面板”。
  2. 找到本脚本「B站动态关键词屏蔽器」,点击“编辑”按钮。
  3. 在代码开头附近找到 const keywords = [...] 这一行。
  4. 在方括号 [] 内添加或删除关键词即可。请确保每个关键词都用英文单引号(')包裹,并用逗号(,)隔开。
  5. 保存脚本。刷新B站动态页面后,新的规则就会生效。 Tired of promotional posts and ads cluttering your Bilibili dynamic feed? This script provides a simple, lightweight, and highly efficient solution to block unwanted content based on a keyword list, giving you a cleaner browsing experience.

It uses a customizable keyword list to automatically detect and hide ad-related posts on t.bilibili.com, ensuring you only see the content you care about.

✨ Features

  • High Performance: Built with MutationObserver to instantly hide new ads as you scroll, with virtually zero impact on your browser's performance.
  • Keyword-Based Blocking: Precisely hides the entire dynamic card if its text contains any of your specified keywords.
  • Easy to Customize: You can easily edit the script to add or remove keywords, tailoring the filter to your personal needs.
  • Lightweight & Focused: No complex UI or settings. Just install it, customize your keywords, and enjoy a cleaner feed.

🔧 How to Customize Keywords

  1. Open your Tampermonkey Dashboard.
  2. Find this script, "Bilibili Dynamic Feed Keyword Blocker", and click the "Edit" button.
  3. Locate the line that starts with const keywords = [...].
  4. Add or remove words inside the []. Make sure each keyword is wrapped in single quotes (') and separated by a comma.
  5. Save the script. The changes will take effect immediately on the next page refresh.