Facebook
From Flying Panda, 2 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 73
  1. jQuery("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").each(function(index) {
  2.         if (jQuery(this).attr('no-data-lightbox')) {
  3.           return false;
  4.         }
  5.         if (typeof(jQuery(this).attr('data-lightbox')) === 'undefined') {
  6.           jQuery(this).attr('data-lightbox', 'lightbox');
  7.         }
  8.   });