HUYA Color

虎牙直播 - 解开弹幕颜色限制

  1. // ==UserScript==
  2. // @name HUYA Color
  3. // @description 虎牙直播 - 解开弹幕颜色限制
  4. // @namespace http://www.huya.com/
  5. // @author 游客
  6. // @include http*://www.huya.com/*
  7. // @version 1.3.6
  8. // @grant none
  9. // ==/UserScript==
  10. // 1.2 虎牙升级 J-color-list-level 代替位 J-color-list-fans
  11. // 去掉改变高度的代码
  12. // 虎牙域名 http 改为 https
  13. // 1.2.6 隐藏金豆礼物
  14. // 1.2.7 隐藏不必要的内容
  15. // 1.2.8 修改部分背景颜色
  16. // 1.2.9 增加可改变背景颜色
  17. // 1.3.5 左边增加 白色/灰色背景 按钮
  18. // 1.3.6 修改系统升级后视频窗口大小变小的问题
  19.  
  20. function hideOT()
  21. {
  22. $(".room-footer").hide();
  23. $(".jump-to-phone").hide();
  24. $(".illegal-report.clickstat").hide();
  25. $("#J_hySide").hide();
  26. $("#hy-watermark").hide();
  27. $("#player-recharge-btn").hide();
  28. $(".room-footer-r").hide();
  29. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(2)").hide();
  30. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(3)").hide();
  31. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(4)").hide();
  32. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(5)").hide();
  33. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(6)").hide();
  34. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(7)").hide();
  35. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(8)").hide();
  36. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(9)").hide();
  37. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(10)").hide();
  38. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(11)").hide();
  39. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(12)").hide();
  40. $("#player-face > div.player-face-list.player-face-list-ctrl > ul > li:nth-child(13)").hide();
  41. $("#J_roomGgTop").hide();
  42. $("#wrap-income").hide();
  43. $("#week-star-btn").hide();
  44. $("#player-face > div.player-face-arrow.player-face-next").hide();
  45. $("#player-face > div.player-face-arrow.player-face-pre").hide();
  46. /*
  47. $("#J_weekRankList > li:nth-child(1) > span.noble-icon").hide();
  48. $("#J_weekRankList > li:nth-child(1) > span.week-rank-name.J_name").hide();
  49. $("#J_weekRankList > li:nth-child(1) > span.level-icon").hide();
  50.  
  51. $("#J_weekRankList > li:nth-child(2) > span.noble-icon").hide();
  52. $("#J_weekRankList > li:nth-child(2) > span.week-rank-name.J_name").hide();
  53. $("#J_weekRankList > li:nth-child(2) > span.level-icon").hide();
  54.  
  55. $("#J_weekRankList > li:nth-child(3) > span.noble-icon").hide();
  56. $("#J_weekRankList > li:nth-child(3) > span.week-rank-name.J_name").hide();
  57. $("#J_weekRankList > li:nth-child(3) > span.level-icon").hide();
  58. //*/
  59. $("#J_roomHeader > div.room-hd-l > div.host-info > div.host-detail.J_roomHdDetail > span.open-souhu.clickstat").hide();
  60. $("#J_roomHeader > div.room-hd-l > div.host-info > div.host-detail.J_roomHdDetail > span.host-channel").hide();
  61. $("#J_roomHeader > div.room-hd-l > div.host-info > div.host-detail.J_roomHdDetail > span.host-rid").hide();
  62. //$("#J_roomNotice").hide();
  63. $(".movie-rank-icon").hide();
  64. $("#player-gift-wrap > div.player-gift-left > div.ship-icon").hide();
  65. //$("#player-gift-wrap > div.player-gift-left > div.tv-icon").hide();
  66. $("#J_roomHeader > div.room-hd-r > div > div.host-control-other.J_roomHdCtrlOther > div.jump-to-phone").hide();
  67. $("#share-entrance").hide();
  68. $("#J_roomHeader > div.room-hd-r > div > div.host-control-other.J_roomHdCtrlOther > div.illegal-report.clickstat").hide();
  69. $("").hide();
  70. /*
  71. $("body").css("background-color","#ccc");
  72. $("#player-video").css("background","#FFF");
  73. $(".player-gift-wrap").css("background","#FFF");
  74. $(".room-wrap").css("background","#FFF");
  75. $(".room-hd").css("background","#FFF");
  76. //*/
  77. $(".subscribe-live-item .video-info .item-mask.off").css("opacity","0");
  78. $(".item-mask").hide();
  79. $(".btn-link__hover_i").hide();
  80. $(".player-face li .plaer-face-icon-bg").css("border","0px solid #EEE");
  81. $("#J_mainRoom").css("padding","0");
  82. $("#J_mainRoom").css("min-width","0");
  83. setTimeout(hideOT, 10);
  84. }
  85.  
  86.  
  87.  
  88. hideOT();
  89. //$(".main-room").css("height","98%");
  90.  
  91. $("#J-room-chat-color").mouseover();
  92. $(".room-chat-tools").append("<script type='text/javascript'>function hideOT(){ $('.youlike').hide(); $('.huya-video').hide(); $('.box-crumb').hide(); $('#J_spbg').hide();$('#J-color-list-fans > li:nth-child(2)').attr('class','color-item');$('#J-color-list-fans > li:nth-child(3)').attr('class','color-item');$('#J-color-list-fans > li:nth-child(4)').attr('class','color-item');$('#J-color-list-fans > li:nth-child(5)').attr('class','color-item');$('#J-color-list-fans > li:nth-child(6)').attr('class','color-item');$('#J-color-list-fans > li:nth-child(7)').attr('class','color-item');$('#J-color-list-fans > li:nth-child(8)').attr('class','color-item');} hideOT();</script><a href=javascript:voide(); onclick='hideOT()'>解开颜色</a></p>");
  93. $("#J-room-chat-color").mouseout();
  94.  
  95. $(".sidebar-hide").append("<script type='text/javascript'>function hcc(){$(\".room-hd-r\").css(\"opacity\",\".95\");$(\".room-hd-r\").css(\"filter\",\"grayscale(1)\");$(\".host-level\").css(\"opacity\",\".95\");$(\".host-level\").css(\"filter\",\"grayscale(mode)\");$(\"#duya-header\").css(\"opacity\",\".95\");$(\"#duya-header\").css(\"filter\",\"grayscale(1)\");$(\"#player-gift-wrap\").css(\"opacity\",\"1\");$(\"#player-gift-wrap\").css(\"filter\",\"grayscale(1)\");}function ctc(c){$('.match_body_wrap').css('background',c);$('.room-hd .host-info .host-title h1').css('color',c);$('.room-hd .host-name').css('color',c);$('#live-count').css('color',c);$('#player-package-btn').css('color',c);$('.box-icon-word').css('color',c); }function cbc(c){ $('body').css('background-color',c);$('#player-video').css('background',c);$('.player-gift-wrap').css('background',c);$('.room-wrap').css('background',c);$('.room-hd').css('background',c);}</script><div><p align=center><br><a href=javascript:void(0); onclick='cbc(\"#FFF\");ctc(\"#3a3a3a\");$(\"body\").css(\"background-color\",\"#f7f7f7\");$(\"#main_col\").css(\"background-color\",\"#f7f7f7\");$(\"#matchLive1791\").css(\"background\",\"#f7f7f7\");$(\".room-core .room-core-r\").css(\"opacity\",\".95\");$(\".room-core .room-core-r\").css(\"filter\",\"grayscale(0)\");$(\".match_body_wrap\").css(\"background\",\"#FFF\");hcc();'>背景<br>白色</a></p><br><p align=center><a href=javascript:void(0); onclick='cbc(\"#222\");ctc(\"#888\");$(\".room-core .room-core-r\").css(\"opacity\",\".9\");$(\".room-core .room-core-r\").css(\"filter\",\"grayscale(1)\");$(\"body\").css(\"background-color\",\"#1e1e1e\");$(\"#main_col\").css(\"background-color\",\"#1e1e1e\");$(\"#matchLive1791\").css(\"background\",\"#1e1e1e\");$(\".match_body_wrap\").css(\"background\",\"#1e1e1e\");hcc();'>背景<br>灰色</a></p></div>");
  96.  
  97. //$('.room-core .room-core-r').css('opacity','.95');
  98. //$('.room-core .room-core-r').css('filter','grayscale(1)');
  99.  
  100. $('.room-hd-r').css('opacity','.95');
  101. $('.room-hd-r').css('filter','grayscale(1)');
  102.  
  103. $('.host-level').css('opacity','.95');
  104. $('.host-level').css('filter','grayscale(1)');
  105.  
  106. $('#duya-header').css('opacity','.95');
  107. $('#duya-header').css('filter','grayscale(1)');
  108.  
  109. $('#player-gift-wrap').css('opacity','1');
  110. $('#player-gift-wrap').css('filter','grayscale(1)');
  111.  
  112.  
  113. (function() {var css = [
  114. //" .room-player-wrap { height:100%; !important; }",
  115. ].join("\n");
  116. if (typeof GM_addStyle != "undefined") {
  117. GM_addStyle(css);
  118. } else if (typeof PRO_addStyle != "undefined") {
  119. PRO_addStyle(css);
  120. } else if (typeof addStyle != "undefined") {
  121. addStyle(css);
  122. } else {
  123. var node = document.createElement("style");
  124. node.type = "text/css";
  125. node.appendChild(document.createTextNode(css));
  126. var heads = document.getElementsByTagName("head");
  127. if (heads.length > 0) {
  128. heads[0].appendChild(node);
  129. } else {
  130. // no head yet, stick it whereever
  131. document.documentElement.appendChild(node);
  132. }
  133. }
  134. })();

QingJ © 2025

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