MediaWiki:Common.js: Difference between revisions
Appearance
Remove duplicate Sandbox link: now added server-side (with icon) by the SandboxAccess extension |
Restore default Vector styling; preserve branded emails |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 4: | Line 4: | ||
The previous JavaScript version (Special:MyPage/sandbox via mw.util.addPortletLink) was removed to avoid a duplicate link; | The previous JavaScript version (Special:MyPage/sandbox via mw.util.addPortletLink) was removed to avoid a duplicate link; | ||
restore it from this page's history if the extension is ever disabled. */ | restore it from this page's history if the extension is ever disabled. */ | ||
/* Native CC BY-SA footer badge: repair an empty configured image source. */ | |||
$(function () { | |||
var badge = document.querySelector('#footer-copyrightico img'); | |||
if (badge && !badge.getAttribute('src')) badge.src = '/resources/assets/licenses/cc-by-sa.png'; | |||
}); | |||
Latest revision as of 04:25, 17 October 2026
/* Any JavaScript here will be loaded for all users on every page load. */
/* The personal-menu "Sandbox" link (with icon) is now added server-side by the SandboxAccess extension.
The previous JavaScript version (Special:MyPage/sandbox via mw.util.addPortletLink) was removed to avoid a duplicate link;
restore it from this page's history if the extension is ever disabled. */
/* Native CC BY-SA footer badge: repair an empty configured image source. */
$(function () {
var badge = document.querySelector('#footer-copyrightico img');
if (badge && !badge.getAttribute('src')) badge.src = '/resources/assets/licenses/cc-by-sa.png';
});