MediaWiki:Common.js: Difference between revisions

No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Force load Google Fonts */
/* Standard Miraheze Font 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() {
 
    $('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() {
    // 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
        $('#p-cactions h3 span').hide();
    }
});