您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens page to your browser's full width
当前为
- // ==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.1
- // ==/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 by 100px. !important was not used to allow resizing
- addGlobalStyle('#cabinets {width: 298px}');
- //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;}');