Tumblr De-Notifier

Remove Tumblr the unread dashboard post counter.

// ==UserScript==
// @name         Tumblr De-Notifier
// @namespace    http://circlejourney.net/
// @version      0.3
// @license      MIT
// @description  Remove Tumblr the unread dashboard post counter.
// @author       Circlejourney
// @match        *://*.tumblr.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=tumblr.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    window.addEventListener("load", function() {
        window.tumblr.getCssMap().then( (cssMap) => {
            const { navItem, notificationBadge } = cssMap;
            const newStyle = document.createElement("style");
            newStyle.innerHTML = `.${navItem}[title='Home'] .${notificationBadge} { display: none !important; }`;
            document.head.appendChild(newStyle);
        });
        console.log("Tumblr De-Notifier initialised.")
    });
})();