MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
Created page with "→Any JavaScript here will be loaded for all users on every page load.: document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('.hover-gif').forEach(function (img) { img.addEventListener('mouseover', function () { const src = img.src.split('?')[0]; img.src = src + '?1'; }); }); });" |
(No difference)
|
Revision as of 19:11, 3 September 2025
/* Any JavaScript here will be loaded for all users on every page load. */ document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('.hover-gif').forEach(function (img) { img.addEventListener('mouseover', function () { const src = img.src.split('?')[0]; img.src = src + '?1'; }); }); });