Orange Modmail

Change the Reddit Modmail icon/outline orange when you have mail so it's easier to notice.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Orange Modmail
// @version      0.1
// @description  Change the Reddit Modmail icon/outline orange when you have mail so it's easier to notice.
// @author       Bawdy Ink Slinger
// @match        https://www.reddit.com/*
// @match        https://old.reddit.com/*
// @match        https://new.reddit.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant        GM_addStyle
// @license MIT
// @namespace https://greasyfork.org/users/1086961
// ==/UserScript==

const orangeFilter = `filter: brightness(0) saturate(100%) invert(57%) sepia(45%) saturate(5111%) hue-rotate(360deg) brightness(101%) contrast(106%);`

GM_addStyle(`#new_modmail.havemail { ${orangeFilter}`)
GM_addStyle(`#Header--Moderation > div > span + .icon-mod { ${orangeFilter}`)