Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
old>Realpsojed |
old>Realpsojed |
||
| Line 9: | Line 9: | ||
} | } | ||
mw.hook('wikipage.content').add(function () { | |||
resizeAllTableImages(); | resizeAllTableImages(); | ||
}; | }); | ||
Revision as of 02:23, 6 April 2021
/* Any JavaScript here will be loaded for all users on every page load. */
function resizeAllTableImages() {
const imgs = document.querySelectorAll(".image2x");
imgs.forEach(function(img) {
img.width *= 2;
img.height *= 2;
});
}
mw.hook('wikipage.content').add(function () {
resizeAllTableImages();
});