Last active
September 1, 2021 06:09
-
-
Save l4vr0v/c583a316ee5df9948a60e366f35beb58 to your computer and use it in GitHub Desktop.
Static mail icon (Warlight)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Static mail icon (Warlight) | |
// @namespace Violentmonkey Scripts | |
// @match https://www.warzone.com/* | |
// @grant none | |
// @version 1.1.3.1 | |
// @author l4vr0v | |
// @description Replaces Warlight flashing mail icon with a still lit-up one, if you have mail. | |
// ==/UserScript== | |
let normalMailIcon = document.getElementById("MailImgNormal"); | |
if (normalMailIcon) { | |
normalMailIcon.style.border = "2px solid black"; | |
normalMailIcon.style.filter = "brightness(0.85)"; | |
} | |
let flashingMailIcon = document.getElementById("MailImgFlashing"); | |
if (flashingMailIcon) { | |
flashingMailIcon.src = "https://warzonecdn.com/Images/Tabs/MailNormal.gif"; | |
flashingMailIcon.style.border = "2px solid orangered"; | |
flashingMailIcon.style.filter = "brightness(1.5)"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment