NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Gmail - hide empty tab panel // @namespace http://tampermonkey.net/ // @version 0.4 // @description When you're in gmail, in a tab that doesn't have any messages, you are shown a message with a grey background color saying for example "Your Social tab is empty." this script gets rid of those panels. // @author mcawesomept // @match https://mail.google.com/mail/* // @grant none // @license MIT // ==/UserScript== /* release notes v0.4 remove jquery reference to solve TrustedHTML exception v0.3 tweak url match to avoid multiple instances v0.2 first working version v0.1 early draft */ (function() { 'use strict'; var styles = ` .aRs { display:none; } .bkK>.nH { background: rgba(255,255,255,0.7) !important; } `; console.log("gmail user script loaded"); var styleSheet = document.createElement("style") styleSheet.type = "text/css" styleSheet.innerText = styles document.head.appendChild(styleSheet) })();