Jump to content

MediaWiki:Common.js: Difference between revisions

From WikiCyber
Restore default Vector styling; preserve branded emails
Tags: Replaced Manual revert
Restore default Vector styling; preserve branded emails
 
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';
});