User:Legobricc/common.js

const images = document.querySelectorAll("#content img"); const regex = new RegExp(/cb=\d+/);

images.forEach(function(image) {   image.setAttribute("src", image.src.replace(regex, "format=original")); });