Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.js

MediaWiki interface page
Revision as of 13:21, 19 March 2026 by Admin (talk | contribs) (Created page with "All JavaScript here will be loaded for users of the Citizen skin: (function () { var btn = document.createElement('a'); btn.href = '/index.php?title=Weapons'; btn.title = 'Weapons'; btn.className = 'citizen-header__button'; btn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">' + '<path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2z"/>' + '</svg>'; var headerEn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All JavaScript here will be loaded for users of the Citizen skin */
(function () {
    var btn = document.createElement('a');
    btn.href = '/index.php?title=Weapons';
    btn.title = 'Weapons';
    btn.className = 'citizen-header__button';

    btn.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor">'
        + '<path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2z"/>'
        + '</svg>';

    var headerEnd = document.querySelector('.citizen-header__end');
    if (headerEnd) {
        headerEnd.prepend(btn);
    }
}());