User:Rustrans/vector.js

var prefLangs = ["ru", "en"]; var prefClasses = $.map(prefLangs, function(lang) { return '.interwiki-' + lang; }); var prefElems = $(prefClasses.join(', ')); prefElems.parent.prepend(" ").prepend(prefElems);

var highlitLangs = ["ru", "en"]; var highlitClasses = $.map(highlitLangs, function(lang) { return '.interwiki-' + lang; }); var highlitElems = $(highlitClasses.join(', ')); highlitElems.css('font-weight', 'bold');