<< Back to Programming Forum   Search

Posts 1 - 15 of 15   
Disable flashing mail icon: 2021-08-08 12:07:36


JK_3 
Level 63
Report
Is there a script or something along those lines that disables the flashing of the mail/notification icon?

Preferable one that replaces the icon with a lit up version so i still can see if i have new notifications.
Disable flashing mail icon: 2021-08-10 07:22:53


JK_3 
Level 63
Report
[nudge]
Disable flashing mail icon: 2021-09-01 02:40:00


Boer
Level 59
Report
It is the most annoying thing in Warzone
Disable flashing mail icon: 2021-09-01 03:51:23


rick
Level 60
Report
I would like an option to toggle the flashing icon off for notifications, like mails are ok but I don't want flashing icon about a game that ended.

also why tf are there so many notification options, like holy shit fizzer. other games have it simple. you put in like a bazillian options.

Edited 9/1/2021 03:56:17
Disable flashing mail icon: 2021-09-01 03:52:36


Shin
Level 59
Report
sadly no because there is no setting for it. i have turned off all notifications and i still get the flashing mail icon.
Disable flashing mail icon: 2021-09-01 05:52:25


l4v.r0v 
Level 59
Report
Here's a short userscript that replaces the Warzone flashing mail icon with a lit-up mail icon if you have un-acknowledged notifications: https://gist.github.com/l4vr0v/c583a316ee5df9948a60e366f35beb58/raw/713383e3eadba49db91f3d17123a19da4d0fc2b6/wl_static_mail_icon.user.js (going to this link should trigger a Violentmonkey/Greasemonkey/Tampermonkey install)

The flashing mail icon comes from a GIF (). This GIF is included in the page if you have notifications.

To mess with that, you can use JavaScript to swap out the image. You can further use the 𝚏𝚒𝚕𝚝𝚎𝚛 CSS property to mutate the image (e.g., by inverting it, tweaking brightness/contrast, rotating the hue). If you don't like the appearance of the lit-up icon, I recommend messing with the filter functions to achieve the appearance you want (docs: https://developer.mozilla.org/en-US/docs/Web/CSS/filter). You can similarly mess with the other Mail icon (use "MailImgNormal" in place of "MailImgFlashing")- e.g., you could swap out both mail icons for different styles of notification icons.

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)";
}
In addition to the code above, the userscript also updates the normal mail icon to make it look crisper (otherwise the two icons look weird next to each other). Here's the appearance you'll get if you install it:
no mail


have mail


If you don't trust a userscript written by me, you can view the full code before installing it at: https://gist.github.com/l4vr0v/c583a316ee5df9948a60e366f35beb58
For a more philosophical discussion of whether you should trust software, check out "Reflections on Trusting Trust": http://users.ece.cmu.edu/~ganger/712.fall02/papers/p761-thompson.pdf

Edited 9/1/2021 06:09:26
Disable flashing mail icon: 2021-09-01 13:12:32


Tac(ky)tical 
Level 63
Report
I like it pls don't ever disable
Disable flashing mail icon: 2021-09-01 20:59:29


JK_3 
Level 63
Report
lavrov's script works great!
Disable flashing mail icon: 2021-09-01 21:17:58


rick
Level 60
Report
nice work knyte, I will try this tmrw
Disable flashing mail icon: 2021-09-01 21:18:50

Riptide
Level 57
Report
that GIF is seizure educing
Disable flashing mail icon: 2021-09-02 08:51:36


Loxiiv 
Level 58
Report
I like it too
Disable flashing mail icon: 2021-09-05 10:22:42


Emperor Justinian
Level 53
Report
I wonder why JK all of people would have a problem with this
Disable flashing mail icon: 2021-09-05 10:23:46


JK_3 
Level 63
Report
Why would i be special if i have a problem with that gif?
Disable flashing mail icon: 2021-09-05 11:02:57


Balthromaw
Level 57
Report
I think that Fizzer implemented a button which allows you to uncheck all notifications at once. Not!
Disable flashing mail icon: 2021-09-05 11:11:46


(deleted) 
Level 61
Report
i think fizzers needs to improve it. idk about you but from what I saw that yellow doesn't highlight the icon very well. He should just turn the white shade to gold when you're notified or add more color. It looks ugly the way it is now.
Posts 1 - 15 of 15