Request for Greasemonkey Script Testing: LJ Light Links

Apr 23, 2006 14:36

I found out that "?format=light" pages don't show ads, so I've made my first GreaseMonkey script:

LJ Light Links

kunzite1 and sasuko have helped me test it some, but if anyone who knows how to run GreaseMonkey is interested in giving it a test run and letting me know about any other problems or suggestions, I'd appreciate the feedback. In a few days, I will probably post about it to lj_nifty and make a guide about it here similar to the last one.

It rewrites all applicable links it finds to use the "?format=light" option. That includes entry pages and month views (examples). On those pages, it also includes a link to go back to the original style of the page.

It's mostly ideal for people who don't like layouts to begin with and prefer all entries/month views to take this format, because it does not distinguish between Sponsored+ and other pages. (However, changes could easily be made to only change links to a given list certain journals, and more nifty code acrobatics could make it automatically determine which links are Sponsored+ and change only those.) Even if they change the "?format=light" page to show ads (which they might, especially now), there's the possibility of ad viewing being less painful in this format than in the layouts of Sponsored+ users. (Which, if the chorus is to be believed, can be quite painful.)

Edit @ 3:15: Bug Fixedkunzite1 notes a bug where (I think it applies to paid users only) if you've friended yourself, the LJ-Cuts to your own entries on your friends page which were originally like:

http://foxfirefey.livejournal.com/192271.html?#cutid1

End up getting changed in the wrong way. The trailing ? (presumed to be vestigal from adding style=mine to all other cuts, but not on a cut leading to your own journal) without any options led the script to rewrite like this:

http://foxfirefey.livejournal.com/192271.html?&format=light#cutid1

Which is invalid. The script has now been fixed so that this doesn't occur and the link is the correct

http://foxfirefey.livejournal.com/192271.html?format=light#cutid1

Edit @ 10:45: Feature Addedsasuko wanted a link the the original style added at the place of the cut if you used the cut link to get there. This feature has now been added.

lj light, tools, greasemonkey

Previous post Next post
Up