Greasemonkey scripts for the Message Center

Oct 30, 2006 07:28

Note: I've set up a page with all my Greasemonkey scripts since I first made this entry.

I come bearing scripts!

What you need before installing: Greasemonkey extension and Firefox

What they do:
  1. Display extra information when viewing notifications and subscriptions (userscripts.org) (actual script)

Leave a comment

Comments 20

flamencanyc October 31 2006, 01:01:54 UTC
Show the time a subscription was last active when viewing the list in your manage settings page.

Any chance this will be available in other browsers (e.g. Safari)? (i.e. built into the generic page code)

Reply

afuna November 1 2006, 09:58:29 UTC
I hope it will, but I don't really know.

If it is built into the LJ code, it would have to be done differently from the way I did it. They'd be looking up the date of the latest comment in their database (I get the impression that that would be expensive).

To get around that, they could store the time a notification was sent out. . . and I just realized that they probably already do, else where would the relative dates in the message center have come from?

They'd have to be able to link a notification to its subscription though, and I'm not sure they do that. (Realized that I have a (nonworking) LJ install on my computer, and am poking around through it now).

For the entry subjects, I used to think that it was a matter of just grabbing the subject field at the same time they grab the url for the entry, but apparently it's not that simple. They're being stored in two different tables and it would be more expensive to grab the subject than it was to grab the entry id, though how much more expensive, and whether it's expensive ( ... )

Reply

flamencanyc November 1 2006, 22:21:52 UTC
No problem. Thinking is good. I just wish that more of these options were available to us who just use LJ via web browers without any installation of other client software. Hopefully they'll come with time, as long as there are people thinking about it. Thanks.
-- Flame

Reply


didaio October 31 2006, 01:45:27 UTC
I check «Show last activity», refresh page, but can't see any times/dates on Message Center Settings.

Reply

afuna October 31 2006, 03:25:59 UTC
Try these two things:
1. Make sure that you clicked "Save preferences"
2. Visit the message center so that it has some data to work with. It can only store data on notifications it has seen in your inbox. If it still doesn't work after that, tell me, and I'll try to figure out what's wrong.

Just realized that perhaps both should be enabled by default, so that the effects are obvious once the script has been installed. Running off to do that now! Thanks for bringing it to my attention.

Reply

didaio October 31 2006, 03:27:17 UTC
1. Checked. Show Entry Title in Inbox works good.
2. Visited many times :)

Reply

afuna October 31 2006, 03:38:21 UTC
You're fast! *grin* I haven't even managed to get the um thing up yet.

Could you check "about:config"? Look for "greasemonkey.scriptvals.afuna.livejournal.com/LJ Message Center: Tracking Subscriptions and Notifications Metadata.subscriptions" and tell me if you see anything there.

Reply


ex_uniquewo November 1 2006, 00:46:18 UTC
This is really useful. Thanks a lot!

Now I wish you could sort subscriptions by journal. ;-)

Reply

afuna November 1 2006, 03:35:26 UTC
You're welcome! I've used the entry subject one for so long that I sometimes forget that it's not built into the page code.

Now I wish you could sort subscriptions by journal. ;-)
Me too :).

I could have sworn there was once a suggestion for viewing notifications in the message center by subcategories, and that many (at least a couple?) approved of the idea, but I can't find it now.

Reply


feelforfaith November 1 2006, 15:39:06 UTC
I am experiencing a strange effect in my Manage User Scripts Window with your script.

When I click on the script name, it makes scripts disappear from the left panel. It starts with the top and bottom scripts (screen cap--see the blank spaces at the top and at the bottom where your script is installed as the last one) and then when I drag the left panel scroll bar up and down, all of them gradually disappear: screen cap

It happens only when I click on the name of your script.

I'm using Greasemonkey 0.6.6, Firefox 2.0, Windows XP.

Reply


Leave a comment

Up