-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
It might be nice to show unread post count on the browser icon. Here are examples from other extensions.
The extension has CORS access to the forum, so a snippet like this should work for getting the number of unread threads/topics.
fetch('https://forum.codeselfstudy.com/notifications.json?recent=true')
.then(res => res.json())
.then(json => {
const numUnseenTopics = json['notifications']
.filter(n => n.read == false)
.length;
console.log('number of unseen topics', numUnseenTopics);
});
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed