您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
原版为z.houbin的虎牙清爽版,修改:1.不隐藏周榜,2.全屏时根据鼠标移出和移入显示声音弹幕播放控制条,3.部分直播间顶部有推荐图,隐藏推荐图并调整播放器位置。(背景图为我自己添加,若不需要注释掉即可)
当前为
// ==UserScript== // @name 虎牙去除全屏礼物 // @namespace none // @version 0.3 // @description 原版为z.houbin的虎牙清爽版,修改:1.不隐藏周榜,2.全屏时根据鼠标移出和移入显示声音弹幕播放控制条,3.部分直播间顶部有推荐图,隐藏推荐图并调整播放器位置。(背景图为我自己添加,若不需要注释掉即可) // @author fengsy // @match *://www.huya.com/* // @grant none // ==/UserScript== (function () { let css = '#player-gift-wrap{display:none !important;height:0 !important}';//底部礼物 css += '.player-wrap{height:100% !important}';//视频播放高度修正 css += '.player-ctrl-wrap{bottom:0px !important}';//视频播放高度修正 //css += '#J-weekRank{display:none !important;}';//周榜 css += '#chatRoom{height:80% !important;}';//修正评论高度 css += '#chatRoom > div{height:100% !important;}';//修正评论高度 css += '.msg-nobleEnter{display:none !important;height:0px !important}';//进入直播间 css += '#system-warnTips{display:none !important;height:0px !important}';// css += '.tit-h-send{display:none !important;height:0px !important}';//礼物 css += '.room-footer{display:none !important;height:0px !important}';//动态 //直播间图标 css += '.jump-to-phone{display:none !important;height:0px !important}';//客户端看 css += '.share-entrance{display:none !important;height:0px !important}';//分享 css += '.room-gameBuy{display:none !important;height:0px !important}';//下载游戏 css += '.illegal-report{display:none !important;height:0px !important}';//举报 //导航栏图标 css += '#hy-nav-download{display:none !important;height:0px !important}';//下载 loadStyle(css); displayMode(); hideTop(); function loadStyle(css) { var style = document.createElement('style'); style.type = 'text/css'; style.rel = 'stylesheet'; style.appendChild(document.createTextNode(css)); var head = document.getElementsByTagName('head')[0]; head.appendChild(style); } //鼠标移入移出显示播放器控制条 function displayMode(){ $("#J_playerMain").mouseover(function(){ $(".mode-page-full #player-ctrl-wrap").show(); $(".mode-page-full #player-wrap").css("height","100%"); $(".mode-page-full #player-ctrl-wrap").show(); }).mouseout(function(){ $(".mode-page-full #player-ctrl-wrap").hide(); $(".mode-page-full #player-wrap").css("height","100%"); $(".mode-page-full #player-ctrl-wrap").hide(); }); }document.domain //根据直播间是否有顶部推荐图,隐藏推荐图 function hideTop(){ var bgBg = document.getElementById('J_spbg'); if(bgBg!=null) { var Nurl = window.location.href; //修正董小飒顶栏白条 if(Nurl.indexOf("dongxiaosa") > 0 ){ bgBg.parentNode.removeChild(bgBg); }else{ // document.getElementById("main_col").style.backgroundColor='#000000'; //如不需要背景图,注释下面两行即可 document.getElementById("main_col").style.backgroundImage='url(https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1559755677899&di=3c3224516f1d0d27949341cd3a9c8f63&imgtype=0&src=http%3A%2F%2Fimg.nga.178.com%2Fattachments%2Fmon_201905%2F18%2F-4ada3Q5-7tb1KtT3cS1hc-u0.png )'; document.getElementById("main_col").style.backgroundSize='100% 100%'; //end document.getElementById("J_spbg").style.display="none"; document.getElementById("J_mainRoom").style.padding="100px 5px 0 20px"; } } } })();