Other Stuff

Expresso Beans Image Fixer



The Expresso Beans forums have some problems with broken images, this is a simple javascript extension that fixes the image sources so that they display properly, and it does some neat charting stuff!



A while back I made a little project based on expressobeans.com using chart.js and regression-js (see this post), so I figured it might be nice to add some of that to the image fixer. Some notes:

  • You might notice that the averages in the fancy chart don't match the averages listed by the site.  I'm not sure how the site does averages (they may not include all sales), but the extension uses all sales except those that are "not counted" in the site's price history.
  • I also wasn't sure how the site handled regression, so the extension uses either 1st or 2nd order polynomials depending on how many sales there've been, which seems to match the site's regression.
  • Because the site requires users to be logged in to view price history, the extension will not replace the chart if the user is not logged in.  Messages (like reminders to login, and loading status) show up underneath the text under the default chart (underneath the table with collections, averages, original prices, etc).
  • Users can disable the fancy chart stuff in the extension's options menu: go to chrome://extensions, click "options", underneath Expresso Beans Remote Link / Image Fixer, then click "ON/OFF" to toggle.


This was frankensteined together from a couple different versions of a project I haven't looked at for a couple months, so there might be some quality control stuff that slipped through the cracks.  Namely, the date formats for the chart controls may not be 100% correct.  (But at least the first one works).  If anything seems to be broken, let me know and I'll try and get it fixed asap.