Block Bilibili's marketing videos and promotional videos

Block some video cards recommended on the homepage of Bilibili. The rules are to block those from creators with a certain number of small fans, block live streams and right-hand promotion, and block those with advertising tags.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Author
XiaoLinXiaoZhu
Daily installs
0
Total installs
662
Ratings
2 0 0
Version
3.0.1
Created
2024-06-14
Updated
2026-05-16
Size
10.1 KB
License
GNU General Public License v3.0
Applies to

关于之前存在的bug

抱歉抱歉,之前写的代码有点问题(主要是获取dom节点获取错了,导致每次都需要全部遍历一遍QAQ

现在修复了这个bug

屏蔽B站营销视频和推广视频

感谢sghavcsf321的屏蔽B站营销视频屏蔽B站营销视频

本工具参考了其的识别方式,但是优化了一下刷新逻辑,加快了识别速度

使用方式

安装即可,会自动进行筛选,筛选原理实际上是根据 视频卡片 的信息,以及粉丝数来过滤的,因为一般来说,营销账号的粉丝数量不会太多,就我自己观察而言,一般不超过2000,所以说:

  const MIN_FOLLOWER = 2000;

当然,你也可以自己更改这个数值

版本记录

  • 1.0 使用了屏蔽B站营销视频之后感觉自己用得不是很顺手,然后就顺便优化了一下加载速度
  • 1.1 原本的监控网页滑动的原理太拉了,靠监控网页滑动+内置延时控制最大频率,不是很稳定。于是乎换了种方法,使用监控节点变化的方法
  • 1.2 实际上考虑到,只有监控到 能看的到的地方是否有就行了,于是学了个 observer,这样的话只会对进入能看到的区域内才会开始加载

  • 2.0 修复了重复调用的bug

  • 2.2 简化了调用逻辑,提高了(可能)一点性能

  • 2.3 修改了debug信息

  • 2.4 整合了debug信息,避免刷屏

  • 2.5 我也不记得干了啥

  • 2.6 bilibili的界面改了,程序做了点同步

  • 2.7 额,多写了一个符号……所以说我现在改用ts了

  • 2.8 我也忘了加了啥

关于我

学了js之后尝试使用js来提高自己的网页浏览体验的臭大学生,感兴趣的可以看看我的其他js脚本:xlxz

这里是我的github主页 xlxz