Craigslist Fusion

By Vy Ho Last update Apr 18, 2014 — Installed 49,836 times.

Script Summary: Show post details and Craigslist image previews directly in the listing page, mark spams, enlarge images on mouse over, auto sending out emails, filters, embedded map and drive directions, hide a post, auto hide on filtered, bookmark/mark favorites, many many more. Works with Chrome, Firefox, Opera.



Version: 9.9.16

Thumb Thumb Thumb Thumb Thumb Thumb Thumb
Special notes:

The latest code changes probably will reset all your preferences.
Please check the preferences and change accordingly.
CL changes again and the Map View button no longer works. I am working on the issue. Thanks.

Release 9.9 - Special thanks to David Rees for suggestion of adding location and provided sample code
Release 9.6.4,9.6.8 - Special thanks to David Rees for various feedback
Release 9.5 - Special thanks to Kevin York for the feedback on summary text minimum width.
Release 9.2.7 - Special thanks to Kevin York for the suggestions.
Release 9.1.9 - Special thanks to killuminati for questioning support for new grid image layout
Release 9.1.8 , 9.1.4 - Special thanks to Kevin York for a few questions and requests.

See video of the script from YouTube

You can also download the Firefox version here:

Firefox addon plugin version

Please also check my other scripts here:

Ebay Fusion

Viet keyboard for Facebook


Note: due to the way Opera web browser running user scripts, please do not store any sensitive information under Opera web browser for this script.

  
  9.9.16:
   - Added support for asterisk HTML entity
   - Updated code to fix "location" parsing due to change by CL
  9.9.15:
   - Fixed grid and map view due to recent update by CL
  9.9.14:
   - Fixed serializer code
  9.9.13:
   - Updated email parsing code to retrieve the correct base URL
  9.9.12:
   - Revised check layout and set default layout after initial instal
   - Fixed some parsing error of reply/contact mark up
  9.9.11:
   - Renamed various namespaces
  9.9.10:
   - Added code to parse entity in the summary text
   - Added code to remove newlines between posting info at the bottom of each posting details
  9.9.9:
   - Fixed switching between various view problem
  9.9.8:
   - Fixed switching between grid and list view problem
  9.9.7:
   - Added additional cleanups for HTML parsing code
  9.9.6:
   - Fixed grid view not working due to changes by CL
  9.9.5:
   - Fixed Chrome background color for posting entries not changed according to preferences
  9.9.4:
   - Updated to fix parsing of posting information error due to an attribute name with a dash in it.
   - Updated to add "hearts" entity symbol
  9.9.3:
   - Updated to show bullets in list by working around CL's style settings
   - Updated default entry background color to use a lighter color
   - Remove CL local storage from matching the script
  9.9.2:
   - Updated to fix driving direction issue with the destination location
  9.9.1:
   - Updated map location to have a more accurate location when the information is available.
  9.9:
   - Added location to the subject line if different/not existed already within the subject line in both details and listing views
  9.8.9:
   - Fixed parsing html entity code to support more entities
  9.8.8:
   - Fixed favorites rendering (dollar sign in the subject line)
   - Fixed favorite print rendering
     + Dollar sign in the subject line
     + Images causes rendering to fail
  9.8.7:
   - Fixed filter code, filter result area not found due to changes to CL code (auto emails were not working)
  9.8.6:
   - Fixed email subject encode/decoding problem (dollar sign issue)
  9.8.5:
   - Updated code to use asynchronous call to retrieve email address due to some web browsers not supporting sync call
  9.8.4:
   - Added code to decode HTML entity characters in detail subject/title text
   - Updated bookmarks label and delete button L&F
  9.8.3:
   - Fixed parsing post update date due to recent changes by CL
  9.8.2:
   - Fixed reply email parsing code due to changes by CL again
   - Fixed date parsing code due to changes by CL
  9.8.1:
   - Updated to fix a few typos for getting email address
   - Updated to fix a previous missed refactoring code (click on detail text to see details)
  9.8:
   - Updated background gradient color
   - Added preference for background gradient color
   - Added background color for preferences
   - Added support for embed images in the post details
     + See various new preferences for turn on/off, grid size, image height
   - Fixed email parsing code due to change by CL
  9.7.7:
   - Fixed search option for housing type not shown
  9.7.6:
   - Fixed to add the checkbox for search by title
  9.7.5:
   - Set default of elapsed datetime to 2 
  9.7.4:
   - Updated to correct parsing of reply email due by CL changes
  9.7.3:
   - Fixed show hidden entries due to changes by CL
   - Fixed post date/elapsed time due to changes by CL
  9.7.2:
   - Added bookmarks for searches
  9.7.1:
   - Added link in toolbar to go to top of page
  9.7:
   - Fixed outside image with "_" in the URL issue
   - Updated various layout/styles of toolbar area
   - Updated various layout/styles of favorite area
   - Updated layout of filter area
   - Partially updated to workaround the changes to Map View
   - Added width to limit print view width
  9.6.8:
   - Added dogs, cats, neighborhoods to search form when available.
  9.6.7:
   - Added an option to show the CL's native favorites (hide by default) - "Show Native Favorite Button"
  9.6.6:
   - Refactored showDetails method to have easier to read data parameter
   - Fixed image issue with missing "_" in URL
  9.6.5:
   - Updated image thumbnail to full conversion due to new CL's code
  9.6.4:
   - Added code to hide craigslist's redundant bookmark button
   - Added update time duration
   - Added code to show price in the detail view
   - Fixed location parsing extra tagging text
   - Added posting information (posted date, ID) to the posting details
  9.6.3:
   - Added a new line after each posting title to separate images and title (due to changes to Craigslist page)
   - Removed document parameter in creating new node or insert new node (missed from 9.4.3 similar changes)
  9.6.2:
   - Fixed posting date parsing code due to updated date markup
  9.6.1:
   - Fixed non-autohide control area overlapping content below it
  9.6:
   - Further improved the auto hide of the toolbar area (addressed auto completion and mouse interaction issue)
   - Noted: if auto hide is disabled in preferences, the toolbar hides craigslist listing entries on top of the page
   - Added option to see hidden and unhide posts
   - Added email options (WARNING: beta version for now, regardless of choice, it uses google mail for auto send)
  9.5.2:
   - Fixed main listing width issue
   - Fixed tab button pane's findNode issue (class attribute matching)
  9.5.1:
   - Fixed left right image scroll button positions issue
  9.5:
   - Fixed map icon alignment in Firefox in the map button
   - Disabled - Added preliminary code for mouse over map to show popup
   - Added left margin to the listing
   - Improved auto-hide feature of the toolbar
   - Adjusted preview text minimum width
  9.4.3:
   - Updated code to have add new node and append not needing the document object as parameter
   - Updated code to have add new text and append not needing the document object as parameter
   - Improved code to reduce validator's warnings
   - Added check against a list of allowed tags of HTML node creation
   - Only created HTML node by calling create element on string constant
   - Fixed switching various tab buttons in addon package
  9.4.2:
   - Updated code to show/hide arrows for begin/end of image scrolls
  9.4.1:
   - Refactored setTimeout and setInterval
   - Refactored various mouse event constants
  9.4:
   - Moved tab buttons to the control toolbar area
   - Changed look and feel of the control toolbar area, transparent, background color, border, float right, width
   - Rewrote image control area for each post entry, should improve performance with the change
   - Changed default max number of images to be loaded per entry to 15
  9.3.7:
   - Fixed layout of each entry issue
   - Replaced developer alerts by notify/logs
  9.3.6:
   - Fixed popup errors due to expired JS objects from previous pages were still processed by assync HTTP request call when change page
  9.3.5:
   - Fixed mark spam error with null for addEventListener
  9.3.4:
   - Fixed Chrome page loading issue
  9.3.3:
   - Added prompt for using location API when location is not set in showing driving direction
   - Only works in Firefox so far, with Chrome unable to provide the location
   - Fixed to work with CL's updated change to gridview (partial fix, should work just ok for now)
  9.3.2:
   - Fixed various favorite window commands errors
   - Fixed clicking not working on form or other windows
  9.3.1:
   - Fixed favorite window not showing up
  9.3:
   - Added support for map view
   - Added floating search form
   - Streamlined the favorvite command links
  9.2.7:
   - Added favorite import/export features
   - Added print favorite feature
  9.2.6:
   - Fixed image resize issue in the grid image view
  9.2.5:
   - Fixed escape code for br tag for rendering HTML in detail view
   - Fixed grid view's image numbered links not showing on top of the images
   - Fixed Chrome's link text not turn into lower case letter issue
  9.2.4:
   - Made debug output to be a bit cleaner
  9.2.3:
   - Updated code to handle invalid HTML (missing/extra closing tags) a bit better
  9.2.2:
   - Fixed no value attribute parsing issue
   - Fixed layout issues with space not wrapping in the details and favorite windows
  9.2.1:
   - Changed detail area's links to open to new pages
   - Turned off logging when parsing data
   - Encoded detail area HTML node's attributes (fixed some missing image issue)
  9.2:
   - Added showing detail text in HTML
   - Added preference to turn off showing detail text in HTML (in case of error, long pause, etc), defaulted to true
   - Fixed a getParentNode() error in Chrome when caching in grid mode, (still showing multiple icons, to be fixed)
  9.1.9:
   - Added preliminary support image grid listing view
      + Can mouse hover/click to see detail listing
      + To see the enlarged images, mouse over the numbered links
      + Often, the numbered links are hidden behind the grid images, to be fixed later
  9.1.8:
   - Added max number of thumbnails shown, default to 4
   - Added option to turn text into lower case, default to true
   - Added configuration setting for showing number of elapse time tokens
  9.1.7:
   - Fixed some existing code depended on the innerHTML
  9.1.6:
   - Rearranged the search form and make it a bit smaller
  9.1.5:
   - Replaced innerHTML with textContent
  9.1.4:
   - Reduced button icons' margin/padding
  9.1.3:
   - Removed tags in content area and set content as text in post details
   - Fixed double images issue
  9.1.2:
   - Updated date parser due to changes on Craigslist's pages
  9.1.1:
   - Updated date parser due to changes on Craigslist's pages
  9.1:
   - Added partial processing and rendering
   - Added preference to turn off confirmation of favorite entry deletion
  9.0.3:
   - Further fixed post content parsing code
   - Refactored a bit of parsing regx
  9.0.2:
   - Fixed posting date parser due to Craigslist's new changes
  9.0.1:
   - Fixed content not found due to Craigslist's new changes
  9.0:
   - Changed order of links processing
   - Prepared code for partial processing and rendering
  8.9:
   - Changed default layout to overlapped detail windows (images and post text)
   - Added preference option to toggler overlap layout
   - Changed default left to right layout to true
   - Note to users: needs to click on one of the layout buttons (50%, 60%, etc) to relayout
   - Please update your preferences if it's not what you wanted.
  8.8.1:
   - Added support for shorten elapsed time display
  8.8:
   - Added time since posted
   - Added preference for show/hide elapsed time
   - Changed some default preferences for show/hide buttons
  8.7.1:
   - Plan: add undo button for "hide" entry
   - Fixed issue when show map button is not enabled, but show direction is enabled
  8.7:
   - Refactored icon button action code
   - Added pre-processing for each entry so entries can be deleted for old entries in the favorites
  8.6:
   - Added settings for not showing text
   - Added settings for setting text length
   - Optimize page load responsiveness
   - Added settings for show/not show various command buttons for each post entry
  8.5.2:
   - Moved inherits function from Function prototype to regular utility class
  8.5.1:
    - Fixed a memory leak issue with window manager
  8.5:
    - Enhanced the text measurement
  8.4:
    - Added detail text inlined
    - Dressed up each posting entry with background color, border and margin
    - Added re-layout code for the favorite window
  8.3:
    - Removed the embed parameter for external map (non-embeded)
  8.2:
    - Added auto hide option to search and filter
  8.1:
    - Optimsed code to not retrieving hidden posts (due to "hide" or "mark as spam")
    - Tuned the "hide" button location to make it easy to hide items
    - Changed favorite button when already marked as favorite to have a visual feedback
  8.0:
    - Added code to hide entries marked as spam
    - Added code to hide entries
    - Added favorite list and mark favorite
    - Updated icon list
  7.9.1:
    - Fixed newly thumb nail images
    - Fixed search box (some items were outside of the box)
    - Some other map fixes
  7.9:
   - Added OR filter support
   - Added scale image on image preview window resize
  7.8.4:
   - Improved the map windows to remove a little space to the right hand side
   - Added click support anywhere in the unfocused map to make it focused
   - Changed code to use node versus HTML for map, much faster moving the map window
   - Added embeded flag to the map window.  Can consider a configuration settings in the future
     to toggle this.
  7.8.3:
   - Addded support for click to focus Google map window
  7.8.2:
   - Updated page refresh page to work properly, or not to refresh when mouse move
   - Updated page refresh to refresh page by submitting the page form (so page cache doesn't prevent page refresh)
  7.8.1:
   - Reduced the spacings between posting entries in the listing
   - Hide warning and provide a link to toggle on/off the warning
  7.8:
   - Improved the posting detail area
     + Changed map and drive direction text links into icons.
     + Shorten some link texts
     + Changed HTML text into JS HTML node creation
   - Moved the posting detail on top of the image area when clicking layout links
   - Made 60% layout bold to indicate recommended settings (and default settings)
   - Improved 100% layout to have the text and image area sizes and locations defaulted to reasonable values.
  7.7.1:
   - Updated layout code to fix some special cases where the layout doesn't work properly
   - Added auto layout for other windows that were not auto-laid out.
   - Cleaned up un-used code
  7.7:
   - Rewrote preferences code
   - Added right alignment option for listing link
   - Added swap left right layout option
   - Removed auto layout preference, keep always auto layout
   - Improved layout code
   - Updated the license to allow only the author/copyright owner to distrite the software or code to prevent
     malicious websites distributing bad code.
  7.6.2:
   - Added support for Chrome Preferences' save/retrieval of values
  7.6:
   - Added default size if preference was not set (also works for Chrome initial size)
  7.5.1:
   - Added content padding
   - Fixed content height when show/hide title bar
  7.5:
   - Fine tuned the fix in 7.4.  The width and height was still a bit off.  This fix makes it much better.
  7.4:
   - Fixed window overlapping border issue
  7.3:
   - Set default auto refresh to false, so the users need to turn it on if they want to
  7.2:
   - Added code to refresh page only if the user is not active (not moving the mouse)
  7.1:
   - Added auto reload of page and preference for setting interval and disable the feature
  7.0:
   - Added auto emails and filter support
  6.7:
   - Added pre-liminary support for Chrome browser
   - No preference/save support
  6.6:
   - Updated to fix changes from Craigslist
  6.5:
   - Put in a check to try to address a little window issue.
  6.4:
   - Added pre-liminary support for Opera browser
   - No preference/save support
   - Window resizinng support is very weak.  Use the "Fit Screen 50% 60% 70% 100%" commands for now.
  6.3:
   - Adjusted layout code to be more precise.
  6.2:
   - Updated code so it doesn't use "eval" function.
   - Changed code to load images top down
   - Kept the horrizontal scrollbar hidden if not needed
   - Added Scale layout and change to scale layout from Dock layout
   - Keep minimized windnow title bar shown when dragging
  6.1:
   - Refactor spam list. Only keeps the last 300 entries. Also store the list as a single entry to make sure it doesn't clutter the system.
  6.0:
   - Replace detail, map, drive direction link texts with icons
   - Added spam button
   - Lined up the search form
  5.9:
   - Fixed to enable auto layout when it's enabled
   - Added some more filters to pages that doesn't use the plugins
  5.8:
   - Hide the buttons for listing content window
   - Added 100% to fit screen command list
  5.7:
    - Fixed issue with some Craigslist pages
  5.6.1:
    - Added filter for Firefox plugin
  5.6:
    - Added fit screen feature to fit the windows into the current browser screen
  5.5:
    - Used embbeded window for listing (also added auto layout for this window)
    - Moved Preferences and Sticky Mode links to the content/listing window (more space for post detail)
    - Added option to hide large image window when mouse out of the thumbnails
    - Added option to hide detail window when mouse out of the link
    - Changed sticky mode to apply to both detail and photo image (click at a blank space to get out of sticky mode to send email or change email templates)
    - Added options to change detail text, background, and window border color.
    - Changed the default post detail background color
    - Fixed sizing issue of windows (a little extra size was fixed)
    - Fixed parsing of address for apartment
    - Added namespace support (also moved all classes under new namespace)
    - Re-wrote the old codes
  5.4:
    - [bug fix] Updated code to fix the Craigslist's change which causes double pictures
  5.3:
    - Added controls to limit the width of thumbnail area
    - Added ability to slide the thumbmails back and forth for large number of thumbnails
    - Changed inactive window border color
    - Changed default detail link to point to internal window
    - Changed target of "Detail" link to _blank
    - Added content type for Google map iframe
  5.2:
    - Changed the default sticky mode to false
    - Fixed sticky mode issue with autolayout
  5.1:
    - Fixed preference label error (thanks to Waffull for reporting this)
    - Fixed un-check auto layout preference setting (thanks to Wafful for reporting this)
    - Added preference for switching between post title and "Detail" as a link for seeing the full detail posting
  5.0:
    - Added docking features for image and detail
    - Added post title to the detail view
    - Added options to only show details or images when click (not mouse over)
    - Changed link so that the listing link is used for showing detail, while the new "Detail" link is for showing the Craigslist post
  4.9:
      - Improved minimize window title
  4.8:
      - Added minimize window title
  4.7:
      - Added option for not showing detail posting window
      - Added links for showing detail window, map and drive to window
      - Added ability to click on image to show image window even when it's disabled
      - Added flags to not show image or detail windows if they close, unless they're open again from clicks.
  4.6:
      - Added warning message when editing preference or email templates
      - Fixed title area error because of the way it's created (change to using dom node, versus innerHTML)
  4.5:
      - Refactor and re-write large part of the code
  4.4:
      - Update code to adjust to change by Craigslist
  4.3: New features(s)
      - Added window resizing around all edges
  4.2: New feature(s)
      - Added blind carbon copy to email
  4.1: New feature(s)
      - Added Google Map
      - Added Google Drive Direction
  4.0: New feature(s):
      - Added windowing system
      - Added Google email support
      - Added email templates
      - Added post detail screen
      - Added enable/disable preference for photo preview window 
  3.7: New feature(s):
      - Added sticky mode - preview image moves as your mouse moves.  Click somewhere to stop sticky mode.
      - Added preference for sticky mode.  Set sticky mode when first load a Craigslist page.
  3.6: New feature(s):
      - Added an apply button to the preference window
  3.5 Fix(s):
      - Fixed a broken code.  "dim" not found. (sorry for this, I don't know why it worked before)
  3.4 New feature(s):
      - Save and restore preview window position across browsing sessions
      - Improve window dragging (fix the lost mouse control while dragging fast)
      - Allow users to change the image preview size
      - Added auto update tag into the code when version comes out
      Known issue(s):
      - Dragging when point the mouse at inside the rectangle, but outside of the preview image can causes the dragging to stick.  Users have to refresh the page to get out of it.
  3.3 New feature(s):
      - Added preference link on the preview window
      Fix(es):
      - Removed the original preference code (which has issue with the front page), remember toggle scale
  3.2 New feature(s):
      - Added drag-able preview image window
  3.1 New feature(s):
      - Added close and toggle zoom buttons/links on the preview window
  3.0 New features:
      - Added preference settings and window.
      - Added image preview window
      Fixed:
      - Removed enlarging thumb nail image when mouse over it

License:
The author(s) are the people/entity who developed this software, or wrote this code.
The user(s) are the people/entity who use this code.
The user(s) are allowed to use and distribute the software and the code provided they comply with the following conditions:

1) The original authors are not responsible for any usage, modification or distribution of the software or source code.
2) This license cannot be altered for the original code distributed by the author(s).
3) The original authors/copyright holders cannot be modified or removed from the source or distribution package.
4) The users can redistribute the code only in the whole original and unmodified software package which including the code, license and other file(s)
5) The code can only be used for non-commercial purposes.
6) The user(s) are subject to the following disclaimer.


Disclaimer:

Use this source code at your own risk.  The author(s) are not responsible for any financial
damage or any other lost and/or liability that may be caused by this software.  The author(s)
disclaim any direct or implied warranty of the fitness of this software.  If the software
is in violation of a government laws or any company's policy, including Craigslist's, the
users are responsible for their actions of downloading and using of the software, and
release the author(s) of any liability related to their use or distribution of this software.