Monster JTV

Get the full screen

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Monster JTV
// @version    0.65
// @description Get the full screen
// @include        http://*.justin.tv/*
// @include        http://justin.tv/*
// @exclude        http://justin.tv/
// @exclude        http://www.justin.tv/
// @exclude        http://www.justin.tv/directory/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant       GM_addStyle
// @namespace https://greasyfork.org/users/59
// ==/UserScript==

    $(".chat-column").remove();
    $(".global-header").remove();
    $(".global-footer").remove();
    $(".channel-description").remove();
	$(".channel-category").remove();
	$(".channel-details").remove();
	$(".channel-about").remove();
	$(".channel-vods").remove();
	$(".channel-player-info").remove();
    $(".channel-section").remove();
    $(".channel_status").remove();
    $(".bottom-leaderboard-adslot").remove();
	$("#PopUnderChan_holder").remove();
	$(".clearfix:after").removeAttr("content");
	$(".channel-player-holder").css({"padding-bottom":"0"}).css({"height":"100%"}).css({"width":"100%"}).css({"padding-top":"0"}).css({"position":"absolute"});
	$(".channel-player-inner").css({"height":"100%"}).css({"min-height":"0"}).css({"position":"absolute"});
    $(".player-column").css({"width":"100%"}).css({"margin-left":"0px"}).css({"min-width":"0"});
    $(".channel-wrapper").css({"margin":"0"}).css({"min-width":"0"}).css({"margin-top":"0px"}).css({"margin-bottom":"0px"}).css({"padding-left":"0px"});
    
	$(".channel-wrapper").each(function () {
      this.style.setProperty("height", "100%", "important");
      this.style.setProperty("width", "100%", "important");
});

	$(".player-column").each(function () {
      this.style.setProperty("height", "100%", "important");
      this.style.setProperty("width", "100%", "important");
});

	$(".channel-player-inner").each(function () {
      this.style.setProperty("height", "100%", "important");
      this.style.setProperty("width", "100%", "important");
});

//--- Style our newly added elements using CSS.
GM_addStyle ( multilineStr ( function () {/*!
    .clearfix.hidden:after {
        display:               none;

    }
    .clearfix:after {
        content:               '';
    }
    
*/} ) );

function multilineStr (dummyFunc) {
    var str = dummyFunc.toString ();
    str     = str.replace (/^[^\/]+\/\*!?/, '') // Strip function () { /*!
            .replace (/\s*\*\/\s*\}\s*$/, '')   // Strip */ }
            .replace (/\/\/.+$/gm, '') // Double-slash comments wreck CSS. Strip them.
            ;
    return str;
}