document.addEventListener('DOMContentLoaded', function() {
var images = document.querySelectorAll('.ct-media-container img');
images.forEach(function(img) {
var src = img.getAttribute('src');
// This regex looks for -480x600 before the file extension and replaces it with an empty string
var newSrc = src.replace(/-480x600(?=\.[a-zA-Z]+$)/, '');
img.setAttribute('src', newSrc);
});
});
Reviews
There are no reviews yet.