MFT Widescreen

Opens page to your browser's full width

  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.2
  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 a little
  25. //second line is a workaround to prevent the right view from going to the bottom
  26. addGlobalStyle('#cabinets {width: 250px}');
  27. addGlobalStyle('.wsview {margin: 0 -15px 0 -7px}');
  28.  
  29. //optional code to remove much of the footer information
  30. addGlobalStyle('#main {margin-bottom: 0px !important; }');
  31. addGlobalStyle('#footer {padding: 0 !important;}');
  32. addGlobalStyle('#securedlogo {height: 0px !important;}');