Posteo smaller theme

Change the new posteo design to fit on smaller screens

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Posteo smaller theme
// @namespace   posteo
// @description Change the new posteo design to fit on smaller screens
// @include     https://posteo.de/webmail/*
// @version     0.1
// @grant       none
// ==/UserScript==

function addGlobalStyle(css) {
    console.log("gm-script --> addGlobalStyle (" + css + " )");
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle('#topline{padding:0px!important;}');
addGlobalStyle('#topline span.username{font-size:10px!important;}');
addGlobalStyle('#taskbar a{font-size:10px!important;padding:2px 8px!important;}');
addGlobalStyle('#mainscreen{bottom:2px !important;left:2px !important;right:2px!important;top:54px!important;}');
addGlobalStyle('#quicksearchbar #searchmenulink{top:5px !important;}');
addGlobalStyle('#quicksearchbar #searchreset{top:5px !important ;}.toolbar a.button::before{font-size:16px;}');
addGlobalStyle('#topnav {min-height: 20px !important;}');
addGlobalStyle('#mailboxcontainer, #messagelistcontainer {top: 35px !important;}');
addGlobalStyle('#mailview-right {top: -14px !important}');
addGlobalStyle('#mailview-top {top: 14px !important;}');
addGlobalStyle('#mailpreviewframe {border-bottom: 18px!important;}');
addGlobalStyle('#rcmflag{width: 20px;!important;}');
addGlobalStyle('#rcmattachment{width: 20px!important;}');