您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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.") }); })();