MFT Widescreen

Opens page to your browser's full width

当前为 2016-05-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name MFT Widescreen
  3. // @namespace https://www.mftservice.com
  4. // @description Opens page to your browser's full width
  5. // @include https://www.mftservice.com/*
  6. // @exclude https://www.mftservice.com/courier/web/1000@/*
  7. // @icon https://www.mftservice.com/courier/themes/templates/1000/nbaSqIEUHtappgKhp/files/images/publicis-mft-white_small.jpg
  8. // @version 1.1
  9. // ==/UserScript==
  10.  
  11. function addGlobalStyle(css) {
  12. var head, style;
  13. head = document.getElementsByTagName('head')[0];
  14. if (!head) { return; }
  15. style = document.createElement('style');
  16. style.type = 'text/css';
  17. style.innerHTML = css;
  18. head.appendChild(style);
  19. }
  20.  
  21. // removes hard coded width
  22. addGlobalStyle('#page {width: 100% !important; padding: 0 !important; }');
  23.  
  24. //widens the left workspace by 100px. !important was not used to allow resizing
  25. addGlobalStyle('#cabinets {width: 298px}');
  26.  
  27. //optional code to remove much of the footer information
  28. addGlobalStyle('#main {margin-bottom: 0px !important; }');
  29. addGlobalStyle('#footer {padding: 0 !important;}');
  30. addGlobalStyle('#securedlogo {height: 0px !important;}');