隐藏 B 站直播间全部礼物栏(包括全屏非全屏)

现有脚本都只能隐藏全屏礼物栏,故重写了一个隐藏所有礼物的,如果要送礼,手动关闭脚本即可

  1. // ==UserScript==
  2. // @name 隐藏 B 站直播间全部礼物栏(包括全屏非全屏)
  3. // @namespace
  4. // @version 1.0
  5. // @description 现有脚本都只能隐藏全屏礼物栏,故重写了一个隐藏所有礼物的,如果要送礼,手动关闭脚本即可
  6. // @author rain
  7. // @match *://live.bilibili.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. var timer
  15. var block1 = function() {
  16. var giftBarFullScreen = document.querySelector('#full-screen-interactive-wrap')
  17. if (giftBarFullScreen != null) {
  18. giftBarFullScreen.remove()
  19. }
  20. var giftItems = document.querySelectorAll('.gift-item');
  21. giftItems.forEach(function(giftItem) {
  22. if (giftItem.className.includes('gift-id')) {
  23. giftItem.remove();
  24. }
  25. });
  26.  
  27. clearInterval(timer)
  28. }
  29. timer = setInterval(block1, 5000)
  30. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址