直播吧过滤电竞

过滤电竞条目,高亮关注球队,过滤无用干扰信息

  1. // ==UserScript==
  2. // @name 直播吧过滤电竞
  3. // @namespace https://www.zhibo8.cc/
  4. // @version 2.0
  5. // @description 过滤电竞条目,高亮关注球队,过滤无用干扰信息
  6. // @author robaggio
  7. // @match https://www.zhibo8.cc
  8. // @match https://www.zhibo8.cc/*
  9. // @match https://www.zhibo8.com
  10. // @match https://www.zhibo8.com/*
  11. // @run-at document-end
  12. // @grant none
  13. // @license MIT
  14. // ==/UserScript==
  15. (function() {
  16. 'use strict';
  17. // 定义过滤关键词
  18. const fitlerKeywords = ["电竞","NBL","斯诺克","WNBA","排球","田径","村BA","中甲","羽毛球","冰球","U21联赛","U17联赛","乒乓球","NHL","围棋","英女足","中超","足协杯","中乙","中甲","举重","CBA","沙特联","公路自行车","美职联"];
  19. // 过滤掉电竞项目
  20. for (let keyword of fitlerKeywords) {
  21. $( "li[label*='" + keyword + "']" ).remove();
  22. }
  23. $( "div.game-news" ).remove()
  24.  
  25. // 定义主队
  26. const teams = ["拜仁慕尼黑","AC米兰","火箭","F1"];
  27. // 背景高亮+大字
  28. for (let team of teams) {
  29. $( "li[label*='" + team + "']" ).css({backgroundColor: "#74b5f7",fontSize:"160%"})
  30. }
  31.  
  32. // 去掉没用的干扰信息
  33. $( "a:contains('NBA范特西')" ).remove();
  34. $( "li>a:contains('文字')").remove();
  35. $( "li>a:contains('动画')").remove();
  36. $( "a[href='//www.zhibo8.com/shouji.htm']").remove();
  37. $( "a[href*='http://www.188bifen.com/']" ).remove();
  38. // $( "a[href^='https://www.zhibo8.cc/other/']" ).css({color:'#bbb'})
  39. // 去掉广告
  40. $('.advert').remove();
  41. $('iframe').remove();
  42. setTimeout(function() {
  43. $('.advert').remove();
  44. $('iframe').remove();
  45. }, 1000);
  46. })();

QingJ © 2025

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