MediaWiki:Common.js: Difference between revisions

From Lenn's Fun Stuff

No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
/* Force load Google Fonts */
/* Universal KH Theme Loader */
$('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">');
(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">');


/* FORCE KH THEME INJECTION FOR COSMOS */
    $(document).ready(function() {
$(document).ready(function() {
        var currentSkin = mw.config.get('skin');
    // Check for cosmos skin
    if (mw.config.get('skin') === 'cosmos') {
        console.log("KH Leaf Theme Initialized on Cosmos");
          
          
         // Ensure the manual bubble handles the 'Actions' text correctly
         if (currentSkin === 'cosmos' || currentSkin === 'anisa') {
        $('#p-cactions h3 span').hide();
            console.log("KH Leaf Theme Active on: " + currentSkin);
     }
           
});
            // Add skin-specific JS tweaks here if needed
            if (currentSkin === 'cosmos') {
                // Specific logic for Cosmos
            }
        }
     });
})();

Revision as of 01:27, 15 March 2026

/* 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
            }
        }
    });
})();