Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Static mail icon (Warlight)
// ==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