_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

User:Lampak/MyLanguages.js

In today's world, User:Lampak/MyLanguages.js has become a topic of great relevance and interest to a wide variety of people around the world. Whether due to its impact on society, its influence on popular culture or its relevance today, User:Lampak/MyLanguages.js is a topic that leaves no one indifferent. From subject matter experts to the general public, everyone has something to say or learn about User:Lampak/MyLanguages.js. In this article, we will explore different aspects and perspectives related to User:Lampak/MyLanguages.js, with the aim of delving into its importance and better understanding its role in different contexts.
function myLanguages()
{
    if (typeof(mylangsArray) == "undefined") //user didn't define array of languages
        return;

    var first; //element to insert before
    
    for (var i = 0; i < mylangsArray.length; i++)
    {
        var els = document.querySelectorAll(".interwiki-"+mylangsArray);
        
        if (els.length == 0) //interwiki not found
            continue; 
            
        var parent = els.parentNode; 
                   
        if (!first) //first loop run
            first = parent.firstChild;
                      
        for (var n = 0; n < els.length; n++)
        {
            els.style.fontWeight = "bold"; 
        
            if (first == els) //don't move element before itself
                first = first.nextSibling; 
            else
                parent.insertBefore(els, first); 
        }
    }
}

$(window).on("load", myLanguages);