MediaWiki:Citizen.js
MediaWiki interface page
More actions
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-drawer__card');
if (headerEnd) {
headerEnd.append(btn);
}
}());