Watch on YouTube:

See How to create a bookmarklet (and load jQuery anywhere)!

Full write-up is forthcoming...

Here's the craigslist thumbnail loader we created in class:


(function () {
  "use strict";

  var spans = []$('span.itempx'));
  spans.forEach(function (span) {
    var $row = $(span).closest('.row')
      , rowText = $row.text()
      , rowPic = $row.find('.ih').attr('id')
      , img = new Image()

    if (/\bpic\b/.test(rowText)) {
       img.src = rowPic.replace(/^images:/, '');

By AJ ONeal

If you loved this and want more like it, sign up!

Did I make your day?
Buy me a coffeeBuy me a coffee  

(you can learn about the bigger picture I'm working towards on my patreon page )