User:RoverdriveX/global.js

/* No Global Nav (pt 2). Thanks Joritochip. */ /* Search bar, too. Thanks Philo. */ /* This mw.loader stuff must be included to work on GP. */ mw.loader.getScript('https://dev.fandom.com/wiki/MediaWiki:ArticlesAsResources.js?action=raw&ctype=text/javascript').then(function {	importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:NoGlobalNav.js', 'u:dev:MediaWiki:UCXSearchBar.js', ]	}); });

/* Attempt to get all images to appear as original format instead of compressed. Thanks Mr Pie 5. */ 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")); });