MFT Widescreen

Opens page to your browser's full width

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

Bạn sẽ cần cài đặt một tiện ích mở rộng như Tampermonkey hoặc Violentmonkey để cài đặt kịch bản này.

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

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

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

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name MFT Widescreen
// @namespace https://www.mftservice.com
// @description Opens page to your browser's full width
// @include https://www.mftservice.com/*
// @exclude https://www.mftservice.com/courier/web/1000@/*
// @icon https://www.mftservice.com/courier/themes/templates/1000/nbaSqIEUHtappgKhp/files/images/publicis-mft-white_small.jpg
// @version 1.2
// ==/UserScript==  

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

// removes hard coded width
addGlobalStyle('#page {width: 100% !important; padding: 0 !important; }');

//widens the left workspace a little
//second line is a workaround to prevent the right view from going to the bottom
addGlobalStyle('#cabinets {width: 250px}');
addGlobalStyle('.wsview {margin: 0 -15px 0 -7px}');

//optional code to remove much of the footer information
addGlobalStyle('#main {margin-bottom: 0px !important; }');
addGlobalStyle('#footer {padding: 0 !important;}');
addGlobalStyle('#securedlogo {height: 0px !important;}');