GMail Pause

Put GMail on pause to stop distractions!

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         GMail Pause
// @namespace    http://tagansvar.eu/
// @version      1.2
// @description  Put GMail on pause to stop distractions!
// @author       Mikkel Kongsfelt
// @match        https://mail.google.com/*
// @grant        none
// ==/UserScript==

function hideUnread()
{
    document.title = 'Gmail';
}
var t=setInterval(hideUnread,10);

function 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('tr.zE {display:none;}');
addGlobalStyle('div.aDG {display:none;}');
addGlobalStyle('div.aKs {display:none;}');
addGlobalStyle('.n1 .n0 {  font-weight:bold !important;}');
addGlobalStyle('div.UKr6le { width:73px; }');
addGlobalStyle('.aRu {display:none;}');