It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
high rated
Since the original announcement got moved to the archive, I guess I have to start a new thread to announce this update.

For those not familiar with it, my forum notifier userscript lets you use a tab (typically pinned) to watch for new posts in favourited threads. You install it, open the community page, and unread counts will appear in the icon. It'll auto-reload the page once every hour, like an RSS feed.

I just released an update so it now also includes GOG notifications in the count on the favicon... which makes it useful for watching everything GOG doesn't announce via e-mail, RSS, or indirectly via the "what did just update?" thread.

Since we all know you can't just refresh the page to immediately clear GOG notifications, I also adding an "Ignore Stuck Notification Count" command.

Here's how it works:
1. After clearing out your notifications, reload the page and choose "Ignore Stuck Notification Count"
2. When the option is selected, Greasemonkey takes note of the current value of each notification counter in the dropdown.
3. If a counter stays the same or goes up, then the saved values are subtracted from it before display in the tab icon.
4. If a counter goes down, it's assumed to be un-stuck and normal operation resumes for that specific counter.

Enjoy. :)

P.S. In case any other game collectors are interested, I also wrote one for ScummVM's compatibility list so you can use it as an interactive tracker for which games you own and which ones you still need to find.
Attachments:
Post edited November 30, 2015 by ssokolow
avatar
ssokolow:
Nice. I wasn't aware of this script.
Does this work only with a pinned tab?
If I have a standalone unpinned window open at http://www.gog.com/forum, will it work too?
I don't usually use tabs, nor pinning.
Cheers, wasn't aware of it either, and have the same question as mrkgnao - does it have to be a pinned tab?
It's just changing the favicon and triggering page reloads once an hour, so any tab will work... it just didn't occur to me that someone might want to leave a tab open for use as a notifier without pinning it to collapse it down.

As for a standalone window, that depends on whether your browser displays favicons in places other than the tab bar. I know the Classic Theme Restorer add-on lets you enable favicon display in the Firefox address bar's site identity block.

Failing that, I'm open to integrating some other means of notification as long as it's accessible to a Greasemonkey script.

EDIT: I edited the original post to remove the implication that only a pinned tab will do.
Post edited November 30, 2015 by ssokolow
avatar
ssokolow:
See attached image for how my Windows taskbar looks at the moment. I usually open each web page in a separate full screen window and move among them with Alt-Tab or the mouse. I do not combine taskbar buttons and all my windows are always full-screen. Almost always one of the windows is the GOG forum page.

Two things will make this useful for me:
1) Have the indication on the Windows taskbar button (e.g. as an icon or as a flashing button)
2) Allow the refresh time to be configurable in number of minutes (I expect I'll set it to a much smaller number than 60, e.g. 5).
Attachments:
capture.jpg (15 Kb)
Post edited November 30, 2015 by mrkgnao
avatar
ssokolow:
avatar
mrkgnao: See attached image for how my Windows taskbar looks at the moment. I usually open each web page in a separate full screen window and move among them with Alt-Tab or the mouse. I do not combine taskbar buttons and all my windows are always full-screen. Almost always one of the windows is the GOG forum page.

Two things will make this useful for me:
1) Have the indication on the Windows taskbar button (e.g. as an icon or as a flashing button)
2) Allow the refresh time to be configurable in number of minutes (I expect I'll set it to a much smaller number than 60, e.g. 5).
Well, the refresh interval is just a numeric constant at the top of the file and you can edit that by right-clicking on the script's name in the Greasemonkey toolbar button's menu. (I'm a bit wary of making it too easy for unskilled users to bombard GOG's server with refreshing that can't experience boredom)

As for the taskbar, I haven't found an extension that would put the icon there, but it would be quite simple to put the number at the beginning of the page title rather than the end so it's visible in the text of the button.

If you want something more eye-catching, would it help if I were to add support for firing off an HTML5 Web Notification (demo) when a page reload causes the notification count to increase?
avatar
mrkgnao: See attached image for how my Windows taskbar looks at the moment. I usually open each web page in a separate full screen window and move among them with Alt-Tab or the mouse. I do not combine taskbar buttons and all my windows are always full-screen. Almost always one of the windows is the GOG forum page.

Two things will make this useful for me:
1) Have the indication on the Windows taskbar button (e.g. as an icon or as a flashing button)
2) Allow the refresh time to be configurable in number of minutes (I expect I'll set it to a much smaller number than 60, e.g. 5).
avatar
ssokolow: Well, the refresh interval is just a numeric constant at the top of the file and you can edit that by right-clicking on the script's name in the Greasemonkey toolbar button's menu. (I'm a bit wary of making it too easy for unskilled users to bombard GOG's server with refreshing that can't experience boredom)

As for the taskbar, I haven't found an extension that would put the icon there, but it would be quite simple to put the number at the beginning of the page title rather than the end so it's visible in the text of the button.

If you want something more eye-catching, would it help if I were to add support for firing off an HTML5 Web Notification (demo) when a page reload causes the notification count to increase?
Editing the file is probably no problem. It's not as if I expect to change it more than once, but wouldn't that prevent GreaseMonkey from auto-updating? I can probably live with that, since I'll be favouriting this thread anyhow, so will know when to manually update.

I prefer an unobtrusive solution, so putting a number at the beginning of the page title (e.g. "[13]") is perfect for me. No need for any additional notification.

Basically, I want something that replaces my everyday Alt-Tab to Forum + Ctrl-R with something I can just glance at whenever I wish.
Post edited November 30, 2015 by mrkgnao
avatar
ssokolow: Well, the refresh interval is just a numeric constant at the top of the file and you can edit that by right-clicking on the script's name in the Greasemonkey toolbar button's menu. (I'm a bit wary of making it too easy for unskilled users to bombard GOG's server with refreshing that can't experience boredom)

As for the taskbar, I haven't found an extension that would put the icon there, but it would be quite simple to put the number at the beginning of the page title rather than the end so it's visible in the text of the button.

If you want something more eye-catching, would it help if I were to add support for firing off an HTML5 Web Notification (demo) when a page reload causes the notification count to increase?
avatar
mrkgnao: Editing the file is probably no problem. It's not as if I expect to change it more than once, but wouldn't that prevent GreaseMonkey from auto-updating? I can probably live with that, since I'll be favouriting this thread anyhow, so will know when to manually update.

I prefer an unobtrusive solution, so putting a number at the beginning of the page title (e.g. "[13]") is perfect for me. No need for any additional notification.

Basically, I want something that replaces my everyday Alt-Tab to Forum + Ctrl-R with something I can just glance at whenever I wish.
There. I've made the adjustment to the title and I'll PM you with a way to adjust the reload timing without it being overwritten by updates.
avatar
ssokolow: There. I've made the adjustment to the title and I'll PM you with a way to adjust the reload timing without it being overwritten by updates.
Thank you. Installed and already in use. So far so good, except that I seem to have to reload twice to make the number update correctly after clearing some notifications, at least if the count included a chat notification. Will monitor it and report.

For example:
- Had a count of [5] = [1] library, [1] chat, [3] threads
- Read the chat and threads, clearing them (MaGog clears my library flags)
- Reloaded, expecting [1], but got a [2]
- Reloaded again, got [1]
Post edited November 30, 2015 by mrkgnao
avatar
ssokolow: There. I've made the adjustment to the title and I'll PM you with a way to adjust the reload timing without it being overwritten by updates.
avatar
mrkgnao: Thank you. Installed and already in use. So far so good, except that I seem to have to reload twice to make the number update correctly after clearing some notifications, at least if the count included a chat notification. Will monitor it and report.

For example:
- Had a count of [5] = [1] library, [1] chat, [3] threads
- Read the chat and threads, clearing them (MaGog clears my library flags)
- Reloaded, expecting [1], but got a [2]
- Reloaded again, got [1]
I didn't run into that in my testing, so it's possible it's a GOG cache bug of some sort that I wasn't able to trigger. If it happens again, try to identify the itemized breakdown that's contributing to the undesired number.
Post edited November 30, 2015 by ssokolow
Would you mind replying to me so I can have some test fodder to resolve a "replies in followed threads get counted twice" bug?

I didn't have time back when I had a reply waiting.
avatar
mrkgnao:
avatar
ssokolow: Would you mind replying to me so I can have some test fodder to resolve a "replies in followed threads get counted twice" bug?

I didn't have time back when I had a reply waiting.
Sure.
avatar
ssokolow: Would you mind replying to me so I can have some test fodder to resolve a "replies in followed threads get counted twice" bug?

I didn't have time back when I had a reply waiting.
avatar
mrkgnao: Sure.
There. Problem fixed. (And I also managed to get the the Tinycon.js icon badge working on Chrome... though I'm not sure what I changed.)
avatar
mrkgnao: Sure.
avatar
ssokolow: There. Problem fixed. (And I also managed to get the the Tinycon.js icon badge working on Chrome... though I'm not sure what I changed.)
Cheers.
avatar
ssokolow:
Just wanted to thank you again for this script. Don't know how I lived without it until now.

Since chat notifications do not appear on the account tab, I used to regularly hover my mouse over it, to see if there were any pending chats. Now, only if I cleared all the favourite threads and the number in the title is still not zero do I bother to do so.

Quality of life...