Skip to content

Instantly share code, notes, and snippets.

@l4vr0v
Last active September 1, 2021 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l4vr0v/c583a316ee5df9948a60e366f35beb58 to your computer and use it in GitHub Desktop.
Save l4vr0v/c583a316ee5df9948a60e366f35beb58 to your computer and use it in GitHub Desktop.
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