Craigslist image preview 2

By Kite Last update Apr 14, 2008 — Installed 27,020 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 19 posts, 12 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
speeb User

It was the Craigslist Image Preview from craigstoolbox.com -- which has suddenly become shareware.

 
kizer8 User

Speeb: What was the firefox extension you were using?

Thanks,
Kizer

 
speeb User

The Firefox extension I was using to do this job seems to have gone the pay route now. One thing I liked better: the mouseover preview always appeared in the upper right corner of the window, not inline. How could I get this functionality? My javascript skills are nearly non-existent.

 
kizer8 User

Hello, is there a script like this that will allow me to preview any link and not just links on craigslist?

Thanks,
Kizer

 
VTHokieTL User

MonkeyThumper, remove this section of code to get rid of the mouseover enlargement:

          img.addEventListener("mouseover", function() {
                                 mouseMoves = 0;
                                 if (lastImg) {
                                   lastImg.style.maxHeight = size + "px";
                                   lastImg = null;
                                 }
                                 this.style.maxHeight = 550 + "px";
                                 if (!keepAspectRatio) {
                                   this.style.maxWidth = 600 + "px";
                                 } 
                               },true);

 
MonkeyThumper User

Is there a way to cut off the mouseover enlargement of the pictures? I like seeing the pictures, but don't care to have them enlarge when I move the mouse over them.

Thanks!

 
SteveB User

I use and like the original script. How do I install this revised one?

 
Kite Script's Author

dpfox - Adding a delay is possible, but complicated. Here's a much simpler solution:
Put your mouse clear over to the right edge of the window, and you should be able to avoid the thumbnails as you mouse-wheel up & down.

 
dpfox User

I meant an actual delay - when I have a page with search results and scroll it down (with a wheel); every time mouse gets over a picture it blows up; then I scroll down more, it eventually goes away, but now whole page shifts up

I had to just disable the "blow up" part of the code and browse with just thumbnails

 
Kite Script's Author

I just fixed a bug where the last image on the line would sometimes jump to the next line when blown up. This would remove it from under the cursor, making it shrink down again. Very annoying. Is this what you were talking about, dpfox?
As far as compatability with Autopagerize and Craigslist skin BETA, I'll look into it. tobias_funke, are you talking about http://userscripts.org/scripts/show/8551?

 
dpfox User

Can you add a delay to automatic enlargement of thumbnails?

 
tobias_funke User

this is great, thanks!

Suggestion: could you make it work with the Autopagerize script?

 
360extreme User

Is there a way to get this to run with the Craigslist skin BETA? (http://userscripts.org/scripts/show/24304)

 
macm User

Kite, thanks for the ideas. I updated the scripts on my site (http://www.craigstoolbox.com). I wasn't able to use your code... you are much more advanced js programmer than I am. But I did add some additional functionality like larger image preview on mouse over and more efficient rendering.

 
Kite Script's Author

Sure, macm, go for it!

 
macm User

Nice Kite! Original download at http://www.craigstoolbox.com. I like your improvements, do you mind if I implement them on the plugin? I inherited the site from my Jeff... so I will be the one adding to it for now on.

 
lbfree User

Excellent script! Thanks so much for this wonderful utility. I've never used any download like this before. It opens up a whole new world for me of possibility. You and Jeffery both rawk!

cheers

LB

 
Kite Script's Author

This is a reworking of "Craigslist image preview" by Jeffrey Palm.
I fixed 3 bugs & added 2 improvements.
Bug fix #1 (missing thumbnails): the image preview didn't appear if the original img tag in the ad has any attribute (style, border, etc.) before the source attribute.
Bug fix #2: Small images were enlarged.
Bug fix #3 (internationalize): Now works in Canada too.
Improvement #1 (small-pics clutter): filter out small images, so that they don't even appear
Improvement #2 (enlarge thumbnail on mouseover): up to 550x600 pixels.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel