MediaWiki:Common.js

Revision as of 01:27, 15 March 2026 by LennLeaf (talk | contribs)

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.
/* Universal KH Theme Loader */
(function() {
    // Load Fonts
    $('head').append('<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap">');

    $(document).ready(function() {
        var currentSkin = mw.config.get('skin');
        
        if (currentSkin === 'cosmos' || currentSkin === 'anisa') {
            console.log("KH Leaf Theme Active on: " + currentSkin);
            
            // Add skin-specific JS tweaks here if needed
            if (currentSkin === 'cosmos') {
                // Specific logic for Cosmos
            }
        }
    });
})();