GreaseMonkey - My LJ Style

Apr 10, 2005 17:18

For those who use Firefox and has the GreaseMonkey extension installed, I wrote this for YOU:

My LJ StyleThis will add "?style=mine" to the URL of everybody's livejournals and communities. Plus, it will add it to all LJ links in the page, too ( Read more... )

Leave a comment

Comments 33

camomiletea April 11 2005, 18:45:57 UTC
How to make it work? (I downloaded the GreaseMonkey.)

Reply

dark_olim April 11 2005, 18:48:43 UTC
right click on the link above and select add script or something of that nature.

That's after greasemonkey is installed of course

Reply

revgeorge April 11 2005, 18:49:28 UTC
Once GreaseMonkey is installed and you've restarted FireFox, right click on My LJ Style and choose "Install User Script..."

Reply


dark_olim April 11 2005, 18:47:51 UTC
Works like a charm for me, though the normal page does start to load my style overrides it rather quickly. I suspect that's more to do with modifications I've made to firefox than anything else.

Reply

serena_lesley April 11 2005, 18:52:43 UTC
No, mine does it too, it's not a big thing though.

Fantastic idea and script, thanks!

Reply


panoptican April 11 2005, 19:59:09 UTC
Doesn't work for me...

Is this an S2 only thing?

Reply

(The comment has been removed)

happysteve April 12 2005, 03:27:30 UTC
huh, didn't realize it didn't work for S1 people. oops.

Reply

camomiletea April 12 2005, 17:27:16 UTC
Well, it will kind of work. It's just different in S1. If you use S1, adding ?style=mine to comment pages will only show them in the default LiveJournal scheme, because S1 doesn't support customized comment pages. It's still useful for people who absolutely hate customized comment pages, and would prefer to see the regular LJ scheme. It still should work on the pages with recent entries or friends entries, etc. But it's funky. I think if you try using ?style=mine on my journal while being in S1, it will show you my custom S1 style I created. (I'm more of S2 person now, though.)

And I have a question. I would still like to be able to preview styles of others via the ?s2id= type of link. Is it possible? I tried adding this:

http://*.livejournal.com/*s2id=*

to Excluded pages, but I haven't restarted FF yet.

Reply


z3bulin April 11 2005, 20:31:34 UTC
Sweet!

Reply


timwi April 12 2005, 13:05:43 UTC

// @include http://www.livejournal.com/users/*
// @include http://www.livejournal.com/~*
// @include http://www.livejournal.com/community/*
// @exclude http://*.livejournal.com/*.bml*This seems to be missing an @include http://*.livejournal.com/* before the @exclude.

Also - not knowing GreaseMonkey - when is this script executed? It would seem that it's executed when a page finishes loading, which would cause the "unwanted" layout to appear first and then a reload taking place. Is that right?

Reply

happysteve April 12 2005, 14:13:04 UTC
I did try the "@include http://*.livejournal.com/*" at first, but it was causing some pages to break, which is why I now specify these @include statements... just to be on the safe side. You can always add it yourself under Tools->Manage User Scripts->My LJ Style

GreaseMonkey is supposed to execute after the DOM is fully loaded, but before the page finishes loading. In the script I set the new location right off the bat, but yeah I see the "unwanted" page first load as well. (I've manually added the ?style=mine to all my LJ bookmarks now.)

If anybody knows a way of immediately changing the location BEFORE even starting to load the page, I'll gladly credit you in the script. Thanks.

Reply

camomiletea April 12 2005, 17:41:22 UTC
Okay, never mind my comment above. I'll just add

http://*.livejournal.com/
http://*.livejournal.com/friends*

Reply

timwi April 12 2005, 23:58:10 UTC
Why only Recent Entries and Friends?

Reply


Leave a comment

Up