User:Пани Лянота/global.js

/* Автор: Frontwards */ document.querySelector('.wds-global-navigation__logo').href = '//shararam.wikia.com'; var spanWiki = document.querySelector('.wds-dropdown__toggle span'); spanWiki.innerHTML = 'Вики'; var newLink = document.createElement('a'); newLink.className = 'wds-global-navigation__cc'; newLink.innerHTML = 'Вики Сообщества'; newLink.setAttribute('href','http://ru.community.wikia.com'); var nav = document.querySelector('.wds-global-navigation__content-bar-left'); nav.appendChild(newLink); /* Автор куска: Fngplg */ window.gnWikiLinks = [ 'https://shwin.fandom.com/wiki/|ШВИН', 'https://dev.fandom.com/wiki/Fandom_Developers_Wiki|/dev/', 'https://ace-attorney.fandom.com/ru/wiki/|Ace Attorney вики']; $(function {    var $menu = $('.wds-global-navigation__link-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-navigation__content-bar-left .wds-is-linked li").each(function{ ind++; $(this).attr("id","banus"+ind); });

var kalokolchik = document.querySelector("#wds-icons-bell"); var nekalokolchik = document.querySelector("#wds-icons-message"); function tupayaFignya(var1, path1, square) { var1.innerHTML = path1; var1.style.width = square; var1.style.height = square; } tupayaFignya(kalokolchik, ' ', '20px');