View All Journals And Communities In Your S2 Style (Opera)

Mar 18, 2008 06:13

I don't know if this has been posted here yet, but if not I'm sure that someone might appreciate it. Here's a simple JavaScript that makes it possible to always view other journals and communities in your own layout style (S2 only). First create a text file such as "LJ.JS" then paste the following code:

style=mine Javascript )

Leave a comment

Comments 35

(The comment has been removed)

slyfoot March 18 2008, 17:01:31 UTC
I added a cut.

Thanks for mentioning that it works with GM. Opera was the only browser I tested it with.

Reply


gipa March 18 2008, 15:13:55 UTC
It is much easier to just put a button on your link bar that points to:
javascript:void(open(location.href+'?style=mine',%20'_top',%20''));
Just one click and you're home free.

Reply

slyfoot March 18 2008, 17:02:14 UTC
Some days I am just too lazy to click a button, haha.

Reply


dimrub March 18 2008, 15:15:57 UTC
Wow, clever! That's the shortest GM script I've ever seen :).

Reply

slyfoot March 18 2008, 17:26:55 UTC
Well, cat_irix is probably more clever than I am, but I have my moments too. :D

Reply


nakeisha March 18 2008, 17:34:52 UTC
Thank you so much for this.

I use Opera and love it.

I've saved it for future reference as I'm still not sure if I want to do this as I do quite enjoy seeing other people's journals. However, oddly enough I was thinking just the other day that there are more and more journals which I have problems reading because of colours etc, and was seriously thinking about finding out how to do this. So thank you!

Reply

slyfoot March 18 2008, 17:39:46 UTC
Well, here's some good news: You can actually create a Toolbar button that you can click whenever you want to view a particular journal in your style:

javascript:location.search+=(location.search?'&':'?')+'style=mine'

Sometimes I am just too lazy to click a button and I wanted the change to be more automatic. But either way, Opera rules. :D

ETA: Also, it's worth noting that you can add specific journals by altering the includes. So instead of "// @include http://*.livejournal.com/*" you could add individual journals such as "// @include http://somejournalhere.livejournal.com/*"

That would give you control over exactly which journals you view in your own style.

Reply

nakeisha March 18 2008, 17:55:30 UTC
Ooh, thank you.

That's a brilliant temporary solution (I do fence sitting and compromises, very British *g*).

Now all I have to do is work out how to create buttons (as in all the years I've been using Opera I've never done that thing).

Opera does indeed rule :-)

Thank you again.

Reply

slyfoot March 18 2008, 17:58:55 UTC
Try this if you get stuck: Opera Custom Button & Command Creator

Reply


tobymalfoy March 18 2008, 18:31:04 UTC
I'm not going to use this, I'm using Firefox and the Greasemonkey script. I'm just curious why you say that it's for S2 only, since the "?style=mine" thing works perfectly well for me and I'm using S1?

Reply

slyfoot March 18 2008, 18:37:56 UTC
Because I tested it using my old S1 Tabular Indent style, and it doesn't work consistently across the board, whereas it does work with S2. Why? I dunno, but it might have something to do with S1 support being abandoned.

Reply

phoenixdreaming March 18 2008, 19:35:23 UTC
I think it's because style=mine only works on certain journal pages if you're using S1; it's fine on comment pages, which is where most people use it anyway. On pages with a corresponding S1 view (recent, calendar, day, friends page), though, it displays whatever the S1 style is selected for the journal being viewed -- not the viewer's own style.

This was how it worked when the feature came in; I don't *think* it's changed, but if anyone's seen different behaviour, I'd be interested in hearing.

Reply

slyfoot March 18 2008, 19:45:21 UTC
That corresponds to what I've noticed, yeah.

Reply


Leave a comment

Up