Compact Outlook.com

Show more e-mails in folders by hiding the row with the first sentence of the e-mail

  1. // ==UserScript==
  2. // @name Compact Outlook.com
  3. // @namespace http://prantlf.tk/
  4. // @version 0.2
  5. // @description Show more e-mails in folders by hiding the row with the first sentence of the e-mail
  6. // @author prantlf@gmail.com
  7. // @match https://outlook.office.com/owa/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. console.info('[Compact Outlook.com] Adding compacting styles.');
  15. var style = document.createElement('style'),
  16. styles =
  17. '._lvv_w._lvv_x,' +
  18. '._lvv_C1._lvv_D1 {' +
  19. ' height: 55px;' +
  20. '}' +
  21. '._lvv_O,' +
  22. '._lvv_Q1 {' +
  23. ' display: none;' +
  24. '}';
  25. style.id = 'prantlf-compact-outlook';
  26. try{
  27. style.innerHTML = styles;
  28. } catch (error) {
  29. style.styleSheet.cssText = styles;
  30. }
  31. document.head.appendChild(style);
  32. }());