I would like to remove the labels "Social", "Promotions", "Updates", and "Forums", from the Gmail compose window.
-
2They're not labels per se, but inbox categories. They're only included in the list of labels as a convenience. Short of something that will modify the HTML, there isn't a way to remove them. (Unless, of course, you stop using the inbox categories altogether.)– aleNov 4, 2016 at 16:52
-
Thanks @AʟE.! I don't mind to completely stop using the inbox categories. How can I do that?– orschiroNov 5, 2016 at 8:55
-
Eh, phooey. Even if you turn them off you can't remove them from the labels list. That's annoying. I'll create an answer to that effect.– aleNov 5, 2016 at 9:51
3 Answers
They're not labels per se, but inbox categories. They're put into your labels list as a convenience, so that moving messages into or out of a category is easier. Moving a message into or out of a category informs Gmail how to categorize similar messages in the future.
You can turn them on or off in Settings > Inbox > Categories
.
Unfortunately, you can't remove them from the labels list. Probably because even though you may not be using/showing them, Gmail still uses them. (This is true even when using an alternative Inbox option, like "Priority Inbox".
All messages are automatically labeled for the first 5 categories even if you don't show the categories in your inbox.
So, short of some possible HTML/CSS trickery in your local browser, you cannot remove these categories from the labels list. At least they're sorted to the bottom.
-
Thanks! Let me know if you know of any HTML/CSS trickery that removes or hides those. :-)– orschiroNov 5, 2016 at 22:29
What I do is wait till I've got a page full of emails (100 in my setup), then select All emails, then in the Labels button, page down to the end of the labels that you've applied yourself. Untick the Social, Promotions etc boxes (fortunately always at the end of the list) and you're done. DON'T FORGET to select NONE afterwards, of course, to clear the active boxes next to your emails. Sounds ponderous but it literally takes 10 seconds and you only have to do it ~twice a month.
A HTML/CSS trickery that can hide them, written in Tampermonkey:
// ==UserScript==
// @name Gmail remove annoying categories
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://mail.google.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
waitForKeyElements (
"div[title*='Updates'], div[title*='Forums'], div[title*='Promotions'], div[title*='Social']",
hideNode
);
function hideNode (jNode) {
jNode.hide ();
}