Greasy Fork

Greasy Fork is available in English.

虎牙超精简

虎牙超精简-给与自己纯粹的直播观看体验-最高画质

当前为 2022-03-26 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         虎牙超精简
// @namespace    http://tampermonkey.net/
// @Icon         https://www.huya.com/favicon.ico
// @version      1.0
// @description  虎牙超精简-给与自己纯粹的直播观看体验-最高画质
// @author       BigHum
// @match        https://www.huya.com/*
// @grant        none
// @license      GPL-3.0-only
// @require      http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...();
    $(function () {
        setInterval(function () {
            //删除静态加载元素
            $("#J_spbg").remove();//移除网页头部Banner图
            $("#J_roomHeader").remove();//移除直播间头部
            $(".room-gg-top").remove();//移除直播间头部广告
            //$(".match-room").css("width","1110px");//直播间宽度
            $(".room-core").css("width","75");//直播间宽度
            $(".room-core").css("margin","0 auto");//直播间居中
            $(".room-core-l").css("margin","0px");//去除直播间右边距
            $(".sidebar-hide").remove();//移除左侧侧边栏
            $("#J_mainWrap").css("padding-left","0px");
            $("#match-cms-content").remove();//移除背景及底部内容
            $(".diy-comps-wrap").remove();
            $(".room-core-r").remove();//移除右侧聊天栏
            $(".room-footer-l").remove();//移除底部主播动态
            $(".room-footer-r").remove();//移除签约公会
            $("#UDBSdkLgn").remove();//移除登录弹出页

            //删除动态加载元素
            $("#hy-watermark").remove();//移除直播号
            $("#player-subscribe-wap").remove();//移除直播间底部主播信息栏
            $(".player-gift-wrap").empty();//移除直播间底部礼物栏
            $(".player-gift-wrap").css("background","#f7f7f7");//更改直播间底部礼物栏背景色
            $("#player-resource-wrap").remove();//移除直播间内广告
            $(".gift-info-wrap").remove();//移除直播间右侧礼物栏
            $(".duya-header-ad").remove();//移除标题中间广告
            $(".subscribe").remove();
            var hasclassdanmu = $("#player-danmu-btn").hasClass("player-ctrl-switch-hide");
            if(!hasclassdanmu){
                console.log("开始关闭弹幕")
                $("#player-danmu-btn").click();
                console.log("结束关闭弹幕")
            }else{

            }
            var hasclasstexiao = $("#shielding-effect").hasClass("shielding-effect-select")
            if(!hasclasstexiao){
                $(".shielding-effect-btn").click();
            }else{

            }
            //$("#danmudiv").remove();//移除弹幕
            //localStorage.loginTipsCount = -1e+35;
            //$('#player-login-tip-wrap').remove();
            //VPlayer.prototype.checkLogin(true);
            $(".player-videotype-list").find("li:first").click();//最高画质
            //$(".player-fullscreen-btn").click();//
        },10)
    });
})();