User:Tulgamn/global.js

/* By Asasyl; / document.querySelector('.wds-global-navigationlogo').href = 'http://ru.polandball.wikia.com/wiki/Polandball_%D0%B2%D0%B8%D0%BA%D0%B8'; var spanWiki = document.querySelector('.wds-dropdowntoggle span'); spanWiki.innerHTML = 'Семейка ПБВ'; var newLink = document.createElement('a'); newLink.className = 'wds-global-navigationcc'; newLink.innerHTML = 'Вики Сообщества'; newLink.setAttribute('href','http://ru.community.wikia.com/%27); var nav = document.querySelector('.wds-global-navigationcontent-bar-left'); nav.appendChild(newLink); window.gnWikiLinks = ['http://ru.polandball.wikia.com/wiki/Polandball_%D0%B2%D0%B8%D0%BA%D0%B8%7CPolandball Вики', 'http://ru.cityball.wikia.com/wiki/CityBall_%D0%B2%D0%B8%D0%BA%D0%B8%7CCityBall вики', 'http://ru.usersofpolandball.wikia.com/wiki/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA%D0%B8_Polandball_%D0%B2%D0%B8%D0%BA%D0%B8%7CУчастники Polandball вики', 'http://ru.wikiball.wikia.com/wiki/WikiBall_%D0%B2%D0%B8%D0%BA%D0%B8%7CWikiBall вики']; $(function {    var $menu = $('.wds-global-navigationlink-group .wds-list'),        links = window.gnWikiLinks || [];    if (!$menu.length || !links.length) return;    links.forEach(function (v) { var link = v.replace(/[|]/g, ''), $a = $('', {               href: (/(.?)||$/.exec(link) || {})[1] || link,                text: (/|(.)/.exec(link) || {})[1] || link,                title: link            }); $menu.prepend($('').append($a)); }); }); / -- */ var ind = 0; $(".wds-global-navigationcontent-bar-left .wds-is-linked li").each(function{ ind++; $(this).attr("id","banus"+ind); });