﻿var hoverZoomPlugins = hoverZoomPlugins || [];
hoverZoomPlugins.push({
    name:'Instructables',
    version:'0.1',
    prepareImgLinks:function (callback) {
        var res = [];
        hoverZoom.urlReplace(res,
            'a[href*=".THUMB."], img[src*=".THUMB."], img[src*=".SQUARE."]',
            /(SQUARE|THUMB)/,
            'LARGE'
        );
        callback($(res));
    }
});

@@ -110,9 +110,9 @@
 :'0.
-1
+2
 ',%0A 
@@ -174,24 +174,25 @@
 s = %5B%5D;%0A
+%0A
         
 hoverZoo
@@ -187,171 +187,1648 @@
     
-hoverZoom.urlReplace(res,%0A            'a%5Bhref*=%22.THUMB.%22%5D, img%5Bsrc*=%22.THUMB.%22%5D, img%5Bsrc*=%22.SQUARE.%22%5D',%0A            /(SQUARE%7CTHUMB)/,%0A            'LARGE'%0A        );
+//url sample:%0A        //https://content.instructables.com/FIU/8ERO/K8CH5ZJM/FIU8EROK8CH5ZJM.LARGE.jpg?auto=webp&frame=1&width=384&height=1024&fit=bounds -%3E https://content.instructables.com/FIU/8ERO/K8CH5ZJM/FIU8EROK8CH5ZJM.jpg%0A        //https://cdn.instructables.com/ORIG/FLZ/S0HR/JZJ0TDDE/FLZS0HRJZJ0TDDE.jpg?crop=1%253A1&width=48 -%3E https://cdn.instructables.com/ORIG/FLZ/S0HR/JZJ0TDDE/FLZS0HRJZJ0TDDE.jpg%0A%0A        // deal with lazy-loading using data-src%0A        $('img%5Bdata-src%5D').each(function() %7B%0A%0A            var link = $(this);%0A            link = $(link);%0A%0A            var re = /(((?:.*?)(?:%5C/%5BA-Z%5Cd%5D+)%7B1,%7D%5C.).*?(bmp%7Cgifv?%7Cjpe?g%7Cpng%7Csvg%7Cwebp)).*/%0A            var m = this.dataset.src.match(re);%0A            if (m) %7B%0A                var backupUrl = m%5B1%5D; // original url without resize, to be tried iff fullsizeUrl does not exist%0A                var fullsizeUrl = m%5B2%5D + m%5B3%5D;%0A                if (fullsizeUrl != undefined) %7B%0A%0A                    cLog('fullsizeUrl:' + fullsizeUrl);%0A%0A                    if (link.data().hoverZoomSrc == undefined) %7B link.data().hoverZoomSrc = %5B%5D %7D%0A                    if (link.data().hoverZoomSrc.indexOf(fullsizeUrl) == -1) %7B%0A                        link.data().hoverZoomSrc.push(fullsizeUrl);%0A                        link.data().hoverZoomSrc.reverse(); // 1st place%0A                    %7D%0A%0A                    if (link.data().hoverZoomSrc.indexOf(backupUrl) == -1) %7B%0A                        link.data().hoverZoomSrc.push(backupUrl); // 2nd place%0A                    %7D%0A%0A                    link.addClass('hoverZoomLink');%0A                    res.push(link);%0A                %7D%0A            %7D%0A        %7D);%0A
 %0A   
@@ -1856,12 +1856,11 @@
 ;%0A    %7D%0A
+
 %7D);
-%0A

Fix for plug-in: instructables.js