azureabstraction > out of the blue

First Real Javascript Adventure

Have you ever been annoyed when people post images that are too wide on LiveJournal? Have you thought it rude for them to have the audacity to make you scroll horizontally through your entire friends page if you want to keep them as a "Friend"? Well, I haven't. But some people have. So, I programmed this Greasemonkey script to solve the problem. All it does is check each image on any livejournal user's friends page, and resizes all images that are above a certain limit. (The default is 900px, but you can change the variable max_width if you want it to be different.)

Here is the script: http://www.azureabstraction.com/code/friendly-image/imagewidth.user.js

To use it, you must be running Firefox, and install Greasemonkey. Follow the instructions on the web site about how to install user scripts (they can be found here: Using Greasemonkey). Then, enjoy never seeing any images bigger than you want to on your friends page.

I hope you enjoy it, if it would be useful to you.

Leave a Reply