At Amino-Wellness we offer the best 3rd party tested Research Peptides at purities greater than 99% guaranteed. By buying from Amino-Wellness you understand that these peptides are for research purposes only and NOT intended for Human use.
// Function to check if a request URL matches an image pattern
function isImageRequest(url) {
return /\.(jpg|jpeg|png|gif|webp|svg)$/.test(url);
}
// If the browser supports request interception (most modern browsers do)
if (typeof window.fetch === 'function' && typeof window.AbortController === 'function') {
const originalFetch = window.fetch;
window.fetch = function(input, init) {
// Check if the request is for an image
if (typeof input === 'string' && isImageRequest(input)) {
// Create an AbortController to cancel the request
const controller = new AbortController();
const signal = controller.signal;
// Modify the fetch call to include the signal
const fetchPromise = originalFetch(input, { ...init, signal });
// Immediately abort the request
controller.abort();
// Return a rejected promise to indicate the request was cancelled
return Promise.reject(new DOMException('Image request aborted', 'AbortError'));
}
// For non-image requests, proceed with the original fetch
return originalFetch(input, init);
};
}