MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
document.addEventListener("DOMContentLoaded", function() {
    // Найдите элементы меню тем
    var themeLinks = document.querySelectorAll('body #p-personal li#p-themes ul li a');
   
    // Измените названия тем
    themeLinks.forEach(function(link) {
        if (link.textContent.includes('⧼theme-sai⧽')) {
            link.textContent = 'SaI';
        }
        // Добавьте дополнительные условия для других тем
    });
});
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */


Navigation menu

Help

Help Image

Here's pages that you can help us to get more information about them.

Stand with Ukraine

Ukrainian Flag