Craigslist locations filter

By Kuzmeech Last update Jan 15, 2011 — Installed 1,343 times.


Script Summary: Useful for housing listings: inclusive/exclusive location filter, Google Maps link with zoom=8, filters 300ms after you finished typing + image preview Filters banners (by odd sizes) and images that have already been shown on the page

* hides ads with (location)s specified in comma-separated list of locations - inclusive or exclusive
* highlights (location)s as a link to Google Maps with magnification #8 (not just the street , but things 100 miles around)

Functionality from "Craigslist image preview 2" is now embedded to optimize performance - pictures fetched only for shown blocks. Other preview scripts can be disabled now.

** Changelog **
2010.03.03:
1.224- fix for jumping ads due to loaded images - now ads with images are moved to the top. Removed "show real pics" option due to that.
1.223- logic fixes: includes filter wasn't working, "next 100" known issue fixed
1.222- fix for ads with duplicate images - they were not filtered, hide empty ads overrides "has image"
1.221- fix for small images which were not hidden
1.22 - hide ads without qualifying pictures mode
1.21 - downscale image popups which do not fit the screen
1.20 - dual monitor & horizontal alignment fix.
1.19 - horizontally - shows smaller pics closer to cursor
1.18 - hides all extremely wide images and ones that are smaller than 150px height or width
- hides duplicate links that once were shown somewhere on the page
- added "td background=" support
- fix for & in url
1.17 - thanks for the tip from user "Perplexed Guide" - now full size popup picture previews with idea borrowed from CLPicView FF plugin
1.16 - fixed include logic, right align for labels on top
1.15 - image preview - fetches images only for _shown_ ad blocks
1.14 - include location filter added
1.13 - checkbox added to enable/disable exclusion filter
1.12 - performance imrovements in RE preparation, debug output removed
1.11 - added "oneshot" timer for 300ms quiesce time after typing stopped, because "onkeyup" in its' pure state was blocking the browser
1.1 - added "exclude" input element at top with onkeyup event handler
1.0 - initial versoin where exclusions were defined in script array