Compact Outlook.com

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

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         Compact Outlook.com
// @namespace    http://prantlf.tk/
// @version      0.2
// @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';

    console.info('[Compact Outlook.com] Adding compacting styles.');
    var style = document.createElement('style'),
        styles =
        '._lvv_w._lvv_x,' +
        '._lvv_C1._lvv_D1 {' +
        '  height: 55px;' +
        '}' +
        '._lvv_O,' +
        '._lvv_Q1 {' +
        '  display: none;' +
        '}';
    style.id = 'prantlf-compact-outlook';
    try{
        style.innerHTML = styles;
    } catch (error) {
        style.styleSheet.cssText = styles;
    }
    document.head.appendChild(style);
}());