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

happysteve April 27 2005, 14:01:46 UTC
So you only want "?style=mine" appended to any Livejournal links that have a ".html" in it, right?

Okay, I've provided a modified version just for you: entry-mylj.user.js

The main difference is that I've added a check to see if the link also contains a ".html" in it before appending "?style=mine". I've also added some comments to help describe what it is doing.

Hope this helps.

Reply

anotherdream April 27 2005, 14:11:21 UTC
Thank you! It appears to work - first draws the page in the original style, but then changes it to the basic style before it finishes loading. I understand this is how Greasemonkey scripts work anyway, executing just before loading instead of before anything loads. (For the record, I do not use Firefox+Greasemonkey, I use Opera8, as its user Javascript feature understands most greasemonkey scripts just as well.) The only possible problem is that in the original post you stated the script also "will add it [?style=mine] to all LJ links in the page", which this version does not appear to do. Nevertheless, it works: many, many thanks for this. ^^

Reply

happysteve April 27 2005, 14:13:51 UTC
Oops, I meant to say it will only add "style=mine" if the link also contains a ".html" in it and is from livejournal.

Reply


Leave a comment

Up