# Discourse Chrome Extension to show unread count

**URL:** https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853
**Category:** Feature
**Created:** [April 23, 2015, 9:42am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853 "2015-04-23T09:42:01Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [April 23, 2015, 9:42am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/1 "2015-04-23T09:42:01Z")

</div>

Hi folks,  
my friend Alessandro has just made this extremely useful extension for our community

> **[Chrome Web Store](https://chromewebstore.google.com/detail/empty-title/afieionhihmhhfclpkcpcblmjafcegid)**
>
> Add new features to your browser and personalize your browsing experience.

Displays the number of unread notifications of your Discourse account, same notifications of Discourse balloon also with tab closed  
You can also click the icon to open the Discourse site.  
He can shortly work on it and made a generic customizable extension on your Discourse installation  
Do you like it?

---

<div class="post-metadata">

### Author: ![trandatnh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trandatnh/32/115055_2.png) [@trandatnh](https://meta.discourse.org/u/trandatnh)
#### Post date: [April 23, 2015, 9:49am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/2 "2015-04-23T09:49:14Z")

</div>

Could you share some screenshot?

Do you think its features conflict with this one

[https://meta.discourse.org/t/show-desktop-notifications-when-available/10183](https://meta.discourse.org/t/show-desktop-notifications-when-available/10183)

---

<div class="post-metadata">

### Author: ![Stefan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefan/32/104823_2.png) [@Stefan](https://meta.discourse.org/u/Stefan)
#### Post date: [April 23, 2015, 9:54am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/3 "2015-04-23T09:54:07Z")

</div>

You can also check this one: [https://chrome.google.com/webstore/detail/vamist/gchlpflkamfigpldidahegijhdbjdpdn](https://chrome.google.com/webstore/detail/vamist/gchlpflkamfigpldidahegijhdbjdpdn) It’s a bit more advanced (it displays latests posts as well). It’s made by one of my community members and this too can be refactored to be used as a general Discourse extension. There is also a Firefox version here: [https://addons.mozilla.org/en-US/firefox/addon/vamist/](https://addons.mozilla.org/en-US/firefox/addon/vamist/)

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [April 23, 2015, 9:54am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/4 "2015-04-23T09:54:53Z")

</div>

> [@trandatnh](#):
>
> Could you share some screenshot?

It’s very simple, take a look at the link above 😄

---

<div class="post-metadata">

### Author: ![alep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alep/32/120750_2.png) [@alep](https://meta.discourse.org/u/alep)
#### Post date: [April 23, 2015, 1:14pm UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/5 "2015-04-23T13:14:29Z")

</div>

> [@trandatnh](#):
>
> Could you share some screenshot?
> 
> Do you think its features conflict with this one
> 
> [https://meta.discourse.org/t/show-desktop-notifications-when-available/10183](https://meta.discourse.org/t/show-desktop-notifications-when-available/10183)

No it does not conflict with desktop notification, because as @alefattorini said, it shows only the number of notifications. I had thought to implement desktop notifications in a future version, when I did know your work on it. Probably it could be useful only when the tab is closed, to not show duplicated notifications.

---

<div class="post-metadata">

### Author: ![thomaspurchas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thomaspurchas/32/115664_2.png) [@thomaspurchas](https://meta.discourse.org/u/thomaspurchas)
#### Post date: [April 23, 2015, 4:49pm UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/6 "2015-04-23T16:49:34Z")

</div>

I think this is pretty cool, and might be an interesting thing to add to my community. You say that your friend is going to do more work on this, any chance he could open source it?

---

<div class="post-metadata">

### Author: ![alep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alep/32/120750_2.png) [@alep](https://meta.discourse.org/u/alep)
#### Post date: [April 24, 2015, 7:11am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/7 "2015-04-24T07:11:06Z")

</div>

Sure, here is the code [GitHub - alepolidori/chrome-discourse-notifications: Chrome extension for Discourse communities notifications · GitHub](https://github.com/alepolidori/chrome-discourse) and here the [extension](https://chrome.google.com/webstore/detail/discourse/okmkhbdimfnmdhpclfbamachjcpcgcmi).

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [April 24, 2015, 7:20am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/9 "2015-04-24T07:20:09Z")

</div>

Just installed 😃 pretty cool!!!

---

<div class="post-metadata">

### Author: ![mbs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mbs/32/115465_2.png) [@mbs](https://meta.discourse.org/u/mbs)
#### Post date: [April 24, 2015, 8:11am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/10 "2015-04-24T08:11:17Z")

</div>

That’s pretty cool.

Thank you!

Now, for mobile notifications then it’s set 😃

---

<div class="post-metadata">

### Author: ![alep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alep/32/120750_2.png) [@alep](https://meta.discourse.org/u/alep)
#### Post date: [April 29, 2015, 2:45pm UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/11 "2015-04-29T14:45:23Z")

</div>

I would evolve the extension to support multiple “discourse sites” at the same time, for example [http://discourse.ubuntu.com/](http://discourse.ubuntu.com/) and [https://meta.discourse.org/](https://meta.discourse.org/).

I would like to make it with a popup dialog showed clicking the icon.  
The dialog shows notification list of all added discourse sites.

What do you think ?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 18, 2015, 3:10am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/12 "2015-06-18T03:10:04Z")

</div>

This extension is polling us WAY to aggressively.

I am noticing about 1.5 hours of processing time from your account in the last 24 hours (@alep), hitting `/latest` OVER and OVER again.

My estimate is that this is hitting `/latest` every 10 seconds, its not even sending a user agent so we can not easily ban this.

Recommend you pull this extension and reimplement using the message bus, it can notify you when new stuff is available.

---

<div class="post-metadata">

### Author: ![alep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alep/32/120750_2.png) [@alep](https://meta.discourse.org/u/alep)
#### Post date: [June 19, 2015, 7:40am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/15 "2015-06-19T07:40:46Z")

</div>

Sorry for the mistake @sam, the counter and update methods were raw… I’ve reimplemented the extension to use MessageBus. It does only an initial json request to session/current.json to obtain che current user id (the response it’s about 1.5 KB) to use with MessageBus.subscribe /notification/userId (each response with data is about 800 B in my case). I’ve not found another method: exists ? You can verify the code [here.](https://github.com/alepolidori/chrome-discourse/blob/master/js/background.js)  
Is the cpu load fixed ?  
Is there some documentation about subscriptions that can be done in MessageBus ?

---

<div class="post-metadata">

### Author: ![alep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alep/32/120750_2.png) [@alep](https://meta.discourse.org/u/alep)
#### Post date: [June 28, 2015, 7:23pm UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/16 "2015-06-28T19:23:07Z")

</div>

Now the extension v0.2 shows notifications list with a popup clicking the icon: [here](https://meta.discourse.org/t/chrome-extension-discourse-v2-0/30555) some info.  
@sam is available the documentation about rest api ? How is it going with the processing time ?

---

<div class="post-metadata">

### Author: ![david15894](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david15894/32/43521_2.png) [@david15894](https://meta.discourse.org/u/david15894)
#### Post date: [July 1, 2015, 10:18am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/17 "2015-07-01T10:18:18Z")

</div>

absolutely good for our Discourse community, now we need more feature 😄

---

<div class="post-metadata">

### Author: ![alefattorini](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alefattorini/32/119928_2.png) [@alefattorini](https://meta.discourse.org/u/alefattorini)
#### Post date: [July 1, 2015, 10:20am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/18 "2015-07-01T10:20:43Z")

</div>

Please ask here or add new issues there:

> **[Issues · alepolidori/chrome-discourse-notifications](https://github.com/alepolidori/chrome-discourse-notifications/issues)**
>
> Chrome extension for Discourse communities notifications - Issues · alepolidori/chrome-discourse-notifications

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:35am UTC](https://meta.discourse.org/t/discourse-chrome-extension-to-show-unread-count/27853/19 "2025-12-04T11:35:52Z")

</div>


