Greasy Fork

Greasy Fork is available in English.

MovieChat.org on IMDb - Companion Script

Remove grey sidebars on MovieChat.org when using drhouse's script.

当前为 2017-05-04 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         MovieChat.org on IMDb - Companion Script
// @version      1.15
// @description  Remove grey sidebars on MovieChat.org when using drhouse's script.
// @author       RandomUsername404
// @match        https://moviechat.org/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @run-at       document-start
// @grant        none
// @icon         http://moviechat.org/favicons/favicon.ico
// @namespace http://greasyfork.icu/users/105361
// ==/UserScript==

$(document).ready(function() {   
    var width = $(window).width();

    // If current width <= 770px :
    if(width <= 770)
    {
        $('.container').css('padding-right', '0px');
        $('.container').css('padding-left', '0px');
        $('.container').css('margin-right', '0');
        $('.container').css('margin-left', '0');
        $('.container').css('width', '100%');
        
        // Move the logo slightly on the right :
        $('#logo').css('margin-left', '1em');

        // Slightly move the navbar :
        $('.navbar-right').css('margin-right', '0px');
        
        // Reduce the top-bar size :
        $('.col-md-12').css('height', '4.8em');
        $('.navbar').css('height', '4.8em');
        $('.container').css('margin-top', '-0.7em');
        
        // Hide the description and add a button to display it when requested :
        var descriptionButton = $('<input type="button" value="Overview" id="despBtn" class="btn btn-yellow btn-block" onclick="this.blur();"/>');
        descriptionButton.insertBefore($(".movie-overview"));
        $(".movie-overview").hide();
        
        $("#despBtn").click(function(){
        $(".movie-overview").toggle();
        });
        
        // Make the author's name visible when possible:
        if(width >= 450)
            {
                var authorDiv = $(".col-xs-3:last-child");
                (authorDiv).removeClass('hidden-xs');
                $('.col-xs-3').css('width', '16%');
                $(authorDiv).css('width', '18%');
                $(authorDiv).css('text-align', 'left');
                $(authorDiv).css('overflow', 'hidden');
                $(authorDiv).css('text-overflow', 'ellipsis');
            }    
    }
    
})();