huya.com pure mode

Hide comments on huya.com

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         huya.com pure mode
// @name:zh-CN   虎牙网页纯净模式
// @name:zh-TW   虎牙网页纯净模式
// @namespace
// @homepageURL
// @version      1.0.1
// @description  Hide comments on huya.com
// @description:zh-CN   网页端虎牙(huya.com)纯净模式
// @description:zh-TW   網頁端虎牙(huya.com)隐藏评论列表
// @author       greatpatrickstar
// @copyright   2019, yaozeye
// @match        ^((https | http)?:\/\/)([^\s]+)\.huya\.com\/[^g].

// @match        *://huya.com/*

// @match        *://*.huya.com/*

// @require      https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js
// @grant        none
// @run-at       document-end
// @license MIT https://opensource.org/licenses/MIT
// @namespace 
// ==/UserScript==

(function() {
    'use strict';
    window.$$jq = jQuery.noConflict(true);


     var hideSide = function(){
		$$jq("#duya-header").hide();

         $$jq(".room-core-r").hide();
         $$jq(".sidebar-show").hide();
         $$jq(".sidebar-hide").hide();
         $$jq("#player-gift-wrap").hide();
         $$jq(".match-cms-content").hide();
         $$jq("#matchComponent3").hide();
         $$jq("#matchMain").hide();
         $$jq("#J_mainRoom").css('background-image','');
         $$jq("#J_spbg").css('background-image','');


         //document.getElementsByClassName('Bottom')[0].style.display = 'none';




     }
    window.setInterval(function(){
        var ss=window.location.href;
        if(ss.indexOf('\.com\/g\/')>= 0 | ss.indexOf('\.com\/l')>= 0 | ss == 'https\:\/\/www\.huya\.com\/' | ss == 'https\:\/\/www\.huya\.com') {
          
        }else{
            hideSide();
        }




    }, 1000);
})();