Skip to main content
Topic: [ADDON][BETA] Favicon with Notifications (Read 5213 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[ADDON][BETA] Favicon with Notifications

To make @meetdilip happy, here it is a first beta of an addon that adds the number of notifications to the favicon of your browser. :)

Completely untested the installer, apart from that the addon is pretty basic, and shoud Just WorkTM... as usual! xD

I used this pre-made js library:
https://github.com/ejci/favico.js
it's not as flexible as I wanted at the beginning[1], but for now will do.

As soon as I set up a github repo I'll post it to the addons site. ;D
I would like to be able to add two notifications at once: one for mention/alerts and one for PMs, but with that library I can add only one number at a time... well, less code to write. :P

Re: [ADDON][BETA] Favicon with Notifications

Reply #1

Neat idea lol..but won't it be tough if there are more than 9 notices? AFAIK the favicon is 16x16 image...not alot to put something else into.

Strike that, I read on the favicon specs that they can be bigger actually. But still, on my chrome tabs they are miniscule things...

Re: [ADDON][BETA] Favicon with Notifications

Reply #2

I guess so, in such a tiny space you can't put much...
I think mobile devices use different favicon sizes but probably not for the tabs, but for bookmarks and/or other stuff like that, so probably not "affected" but this trick.
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][BETA] Favicon with Notifications

Reply #3

Fun :D Its actually easier to read when there are double digit values, at least on the demo page.

What is included in the notification totals?  (sure I could look at the code, but you know :P )


Re: [ADDON][BETA] Favicon with Notifications

Reply #4

The number next to the mentions menu. :P
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][BETA] Favicon with Notifications

Reply #5

it's a good start ;) I'm pretty sure I'll use it when notifications will be more complete ;) I know you have some plans for 1.1 or next version
sorry for my bad english

Re: [ADDON][BETA] Favicon with Notifications

Reply #6

Hey... This is a nice addon. Thumbs up.

But I haven't started on android app notification yet.

Re: [ADDON][BETA] Favicon with Notifications

Reply #7

You know, you guys are simply awesome :love:

Re: [ADDON][BETA] Favicon with Notifications

Reply #8

I'm working a little bit to add that one to 1.1, with an additional ajax call to keep it up to date.
Objections? O:-)
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][BETA] Favicon with Notifications

Reply #9

no objections, I only hope it will not be hungry in hosting resources ;)
sorry for my bad english

Re: [ADDON][BETA] Favicon with Notifications

Reply #10

I added a probing at 10 seconds (hard-coded, no interface to change it), if this kills a server... then the server is already dead to begin with. ;D
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][BETA] Favicon with Notifications

Reply #11

While I was at it I shoved in also the desktop notifications (just fancy stuff :P).
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][BETA] Favicon with Notifications

Reply #12

I'm done with it! https://github.com/elkarte/Elkarte/pull/2156
One less addon to support! :P
Bugs creator.
Features destroyer.
Template killer.

Re: [ADDON][BETA] Favicon with Notifications

Reply #13

QuoteOne less addon to support!
Brilliant !!!

 Spuds runs to put Elk on a feeding frenzy :P

Re: [ADDON][BETA] Favicon with Notifications

Reply #14

LOL
Bugs creator.
Features destroyer.
Template killer.