Jump to content

[Complete] Notifications in page title


Flutterz

Recommended Posts

This seems like something that would help people know that they have a new notification and should go on Fuwa - have the title of the page contain the number of unread notifications (+ number of unread PMs?) and automatically update it every minute or so. I have email notifications disabled for new posts in followed topics because having them enabled would quickly make them 99% of the emails I get, but it would still be nice to have some way of knowing about updates on Fuwa without having to manually refresh the tab every time.

Here's an example of how it could look:

1zq526a.jpg

Edit: Luch made a script that does exactly this, thanks!

http://www.elisanet.fi/luch/Fuwa_title_notification_number.user.js

Link to comment
Share on other sites

Hm, checked about this but there doesn't seem to be any addon for IPB to do this.

 

You can set auto-refresh on the page in browser, for like 10 minutes or something should be fine, I usually end up refreshing more often than that myself when I'm active though.

 

The only option that comes to mind is an userscript or addon for a browser that would make the number on the bell also show on the tab, combine it with auto refresh and it could work. (but you'd have to find someone to write it for you xD).

Link to comment
Share on other sites

Hm, checked about this but there doesn't seem to be any addon for IPB to do this.

 

You can set auto-refresh on the page in browser, for like 10 minutes or something should be fine, I usually end up refreshing more often than that myself when I'm active though.

 

The only option that comes to mind is an userscript or addon for a browser that would make the number on the bell also show on the tab, combine it with auto refresh and it could work. (but you'd have to find someone to write it for you xD).

Is it possible to have someone code one?

 

Also auto-refresh wouldn't help, since I still would have to go to the Fuwa tab to know if anything new has happened.

Link to comment
Share on other sites

Is it possible to have someone code one?

Well it certainly is possible, but you will have to find the chosen one.

I am thinking that userscripts for greasemonkey or tampermonkey would be the easiest way, you would need to read one element of the code (the notification number) and add that number to the header of the website, shouldn't be anything hard for an experienced scripter.

So if anyone here knows how to do it or you know someone who can make scripts, it can be done.

Maybe luch would know how to do it, he made an awesome youtube userscript for me.

Link to comment
Share on other sites

its doable for IPB, you just need to write a code which reads the Nofitication Variable and add the number to the title screen, could be quite a hassle when incorporating it as an optional though

 

but would you really need one though? isn't a big number at the top of a page showing notifications/pm's not enough

Link to comment
Share on other sites

its doable for IPB, you just need to write a code which reads the Nofitication Variable and add the number to the title screen, could be quite a hassle when incorporating it as an optional though

 

but would you really need one though? isn't a big number at the top of a page showing notifications/pm's not enough

I browse a lot of sites at the same time, so knowing that there's something new on a site without having to open its tab is a huge boon.

Link to comment
Share on other sites

Thanks! Now if someone posts something ever I'll be able to see if it works. :P Does it count unread PMs too?

Edit: Doesn't seem to be working for me. :/ I even set the timer to 30 seconds in the script and re-added it, just to make sure the problem wasn't my impatience, but it still didn't work. You just drag and drop it into the extensions window, right?

Link to comment
Share on other sites

Okay, it works now! Thanks!

Just 2 things:

- It changes the name of every page to "Fuwanovel" even when it should be the name of the forums topic you're in, so it'd be great if you could make it use the original page name

- Does it count unread PMs?

Edit: I fixed the first thing myself, here's the new setTitle:

function setTitle(number) {

    var pagename = document.title;
if(number > 0) {
document.title = "(" + number + ")" + " " + pagename;
}
else {
document.title = pagename;
}

Link to comment
Share on other sites

  • 1 year later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...