Compact Outlook.com

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

目前為 2017-07-31 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Compact Outlook.com
// @namespace    http://prantlf.tk/
// @version      0.1
// @description  Show more e-mails in folders by hiding the row with the first sentence of the e-mail
// @author       [email protected]
// @match        https://outlook.office.com/owa/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener('DOMContentLoaded', function () {
        console.info('[Compact Outlook.com] Adding compacting styles.');
        var style = document.createElement('style');
        style.cssText =
            '._lvv_w._lvv_x,' +
            '._lvv_C1._lvv_D1 {' +
            '  height: 55px;' +
            '}' +
            '._lvv_O,' +
            '._lvv_Q1 {' +
            '  display: none;' +
            '}';
        console.log('***', style.cssText);
        document.head.appendChild(style);
        console.dir('***', style);
    });
})();