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

ur a genius, sir slavezombie March 18 2008, 21:51:46 UTC
That was the easiest introduction to javascript niftiness I've ever followed. Thanks. I'm gonna add this to my memories too.

BTW, I would've used the
 tag to emphasize the javascript code to copy and past to the lj.js file. 

// ==UserScript ( ... )

Reply

Re: ur a genius, sir slyfoot March 18 2008, 21:58:42 UTC
Good idea. I've added the "pre" tag.

Reply


kate_nepveu March 19 2008, 15:19:36 UTC
Wicked nifty! Thanks!

Reply

kate_nepveu March 19 2008, 16:46:40 UTC
PS: if you want this to work for things originally linked in format=light, change the last line to

var str=location.search;str=str.replace(/format=light/g,'style=mine');var sep=(str?'&':'?');location.search=((str.indexOf('style=mine')==-1)?str+sep+'style=mine':str);

as seen here: http://murklins.talkoncorners.net/bookmarklets.html

Reply

slyfoot March 19 2008, 16:48:37 UTC
Hmm, I hadn't thought of that! Thanks for the tip.

Reply

kate_nepveu March 19 2008, 16:51:23 UTC
I suspect much of LJ doesn't see format=light at all, but for the people who do, this variant is very handy.

Reply


prissi March 27 2008, 00:25:54 UTC
Very neat. I hope you don't mind me asking, but would you know if it's possible to adapt this somehow so that all other journal/community comment pages only appear siteschemed, while your own comment pages appear in your journal style?

Reply

slyfoot March 27 2008, 01:14:14 UTC
I'm not sure how to do that, sorry. :/

Reply


manna March 28 2008, 01:11:42 UTC
This is very cool! I use both Firefox and Opera, so I can be logged into LJ with two accounts at the same time, and it's great to be able to have ?style=mine working in both.

Reply

slyfoot March 28 2008, 01:16:47 UTC
I'm glad it's useful!

Reply


Leave a comment

Up