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

kriatyrr April 14 2005, 21:36:30 UTC
Well, it sort of works for S1 users - in the sense that it shows S2 journals in an S1 style - the one they used before switching to S2.
So, a lot of the incredibly ugly default S1 style.

Additionally, I just discovered that Greasemonkey makes my browser crash upon logging into my bank, which is needless to say unacceptable.

Such a nifty extension too.. Submitted an error report, hopefully it'll be fixed in a future version.

Reply

happysteve April 14 2005, 21:48:12 UTC
oof! did you have any other user scripts installed?
mine should only affect sites that has ".livejournal.com" in the domain.

Reply

kriatyrr April 14 2005, 21:51:28 UTC
It's not the script, it's greasemonkey itself - it did it with no scripts installed. So rest assured, it's not your fault. :)

Reply

happysteve April 14 2005, 21:52:32 UTC
heh heh... phew! thanks! :)

Reply


anotherdream April 27 2005, 12:40:23 UTC
I'm not very familiar with Javascript at all, so any modifying I want to do would go on guessing... could you consider helping me out? :) I would love to run this script, but only for entry pages. So that if I'm just looking at someone's journal or friends page, it uses their style, but when I view an individual entry (http://www.livejournal.com/users/exampleusername/*.html*) it would automatically get ?style=mine appended. This is because I like other people's own styles, but hate figuring out styled comment pages so I view all of them in the old basic site style. Is this possible in some simple way that you might be willing to explain? :)

Reply

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


imfo April 27 2005, 13:39:35 UTC
LJ-mine extension, 3kb.
Add "Open Link in New Tab (LJ-mine)" in context menu. Not GM script, but maybe useful.

Reply

happysteve April 27 2005, 13:48:04 UTC
You can just middle-click on any link to have it open in a new tab.
Or did I misunderstand what this extension does?

Reply

imfo April 27 2005, 14:12:49 UTC
You have a choose: open some LJ-url with author style or with ?style=mine.
One man was need this function and I created extension. I don't said "better", just "maybe useful". :)
Sorry my english.

Reply


figra October 24 2006, 18:37:14 UTC
Neat :)
But I have two problems, which seem to be script specific, not GM specific - though not sure, this is my first experience with GM...
1) I can't open LJ links from Thunderbird, and
2) when I hold the mouse over a link in FF, the target URL does not appear in the status bar.

Reply


msilverstar March 28 2008, 00:54:50 UTC
I've been looking for something like this for a while now, as way too many journals are either weirdly formatted or have low-contrast text. And now of course, to avoid the Sponsor ads.

Reply


Leave a comment

Up