Preview images from within LJ-cuts

Sep 10, 2006 19:22

I wrote a Greasemonkey script to preview images from within LJ-cuts.


Read more... )

Leave a comment

logopolys September 15 2006, 03:03:26 UTC
You want to edit this post to have an LJ-cut with pics? I'd like to test it out, but I can't find a good post to use.

Reply

malesca September 15 2006, 06:41:04 UTC
Good suggestion, should have thought of that.

Edited.

Reply

logopolys September 15 2006, 07:16:19 UTC
I'm seeing nothing.

Reply

malesca September 15 2006, 07:22:02 UTC
You should see a preview before the second cut (and the first cut, if you've changed the default settings) when you visit http://community.livejournal.com/lj_nifty/.

This presupposes that you're using Firefox 1.5, Greasemonkey (I have 0.6.5), that Greasemonkey is active (there should be a smiling monkey at the right-hand side of the Firefox status bar) and obviously that the script is installed. Confirm the latter by right-clicking the monkey when on the community page - the script should be listed.

If you have all this and it still doesn't work, I've no idea what the issue is. It works fine for me as well as for some friends who use the script.

Reply

logopolys September 15 2006, 08:11:33 UTC
Updated my Greasemonkey and got it to work on the Community page, but not my friends page. This is a slight concern for me, as my friends page is where I'd want to use this.

Also, are preview pictures worth it if they are just as big as what's behind the LJ-cut? (Especially if the LJ-cut was made by the user specifically to not slow down people who didn't want to see a giant image file?)

Reply

malesca September 15 2006, 08:27:38 UTC
Glad you got it working.

Well, what layout do you use for your friends page? To my knowledge the HTML of the underlying page varies wildly from layout to layout, with no common markup to code against. This means that a script such as this can not reasonably work across all layouts out of the box. I've shared the script hoping it's of use to others, but I will not put unreasonable amounts of work into making it work for everyone without an effort on their part. I give some pointers on how to adapt the script for other layouts in the blog post linked from the LJ post above.

Are preview pictures worth it if just as big? Well, that's up to you to decide. I find that it is. Mind, though the same image data is used (so the file size is the same), the preview is displayed at a reduced geometric size - so huge images still take as long to load, though they won't fill up your screen.

Reply

logopolys September 15 2006, 08:31:47 UTC
My view layout is Component right now.

I still think this is an intersting script, but I'm starting to think it's not for me. Thank you, tho'.

Reply

(The comment has been removed)

malesca September 15 2006, 10:51:41 UTC
And the script is listed in that right-click menu, and you're using the software versions mentioned?

Reply


Leave a comment

Up