User:Pirr/global.js

window.qtUserPageTemplate = '' : '}}';

window.globalNavButtons = [ {		text: 'CS', url: 'https://spolecznosc.fandom.com/wiki/', isMain: true, whoIsMain: false, shortName: 'CS', icon: '' },	{		text: 'Riordo', url: 'https://riordan.fandom.com/pl/wiki/', isMain: true, whoIsMain: false, shortName: 'R', icon: '' },	{		text: 'NFS', url: 'https://nfs.fandom.com/pl/wiki/', isMain: true, whoIsMain: false, shortName: 'NFSW', icon: '' }	/*{		text: 'Adopt', url: 'https://community.fandom.com/wiki/Adoption:Requests', isMain: false, whoIsMain: 'C', shortName: 'Adopt' }*/ ];

mw.hook('dev.GlobalNavButtons').add(function {	document.querySelector('.global-navigation__logo').href = "//www.fandom.com/fancentral/home";	document.querySelector('.global-navigation__logo > span').remove;	document.querySelector('.global-navigation__search').remove;	element = document.querySelector('.global-navigation__links');	newWiki = "  ";	exploreWikis = "<path d='M2.499 3.042c-.645.111-1.105.356-1.603.854-.4.4-.6.717-.771 1.217L.02 5.42v11.16l.105.307c.171.5.371.817.771 1.217.401.4.718.601 1.217.771l.307.104 3.02.02c2.843.02 3.028.025 3.16.095.077.041.752.683 1.5 1.426.902.896 1.42 1.381 1.537 1.44a.8.8 0 0 0 .726 0c.117-.059.638-.548 1.537-1.44.748-.743 1.423-1.384 1.5-1.425.132-.071.31-.076 3.16-.096l3.02-.02.307-.104c.499-.17.816-.371 1.217-.771.4-.4.6-.717.771-1.217l.105-.307V5.42l-.105-.307c-.17-.5-.371-.817-.771-1.217-.418-.419-.781-.64-1.282-.784L21.5 3.02h-6.2l-.299.094c-.69.217-.87.349-2.031 1.501l-.97.961-.97-.961c-1.15-1.14-1.323-1.27-2.01-1.5l-.28-.094-3.02-.007c-1.661-.003-3.111.009-3.221.028M8.6 5.094c.077.041.648.58 1.27 1.2L11 7.419v11.154l-.47-.459c-.628-.612-.907-.797-1.51-.998l-.28-.094-3-.021c-3.325-.023-3.144-.008-3.427-.29a1.375 1.375 0 0 1-.216-.295c-.075-.151-.077-.305-.088-5.316-.008-3.551.002-5.214.031-5.333.083-.339.356-.625.686-.722.083-.024 1.203-.036 2.934-.032 2.638.007 2.808.011 2.94.081m12.816.003c.199.099.388.288.487.487.075.152.077.294.077 5.416 0 5.122-.002 5.264-.077 5.416-.043.086-.14.219-.216.295-.282.282-.105.267-3.407.291-3.305.025-3.133.011-3.745.302-.352.166-.591.352-1.125.87l-.41.398V7.418l1.152-1.149a53.568 53.568 0 0 1 1.17-1.15c.01 0 .09-.026.178-.058.135-.05.594-.057 2.96-.05 2.679.009 2.807.012 2.956.086M4.614 8.057a.814.814 0 0 0-.505.396c-.074.139-.089.231-.089.547 0 .331.013.403.1.558.11.197.294.34.515.401.087.024.835.041 1.865.041s1.778-.017 1.865-.041a.842.842 0 0 0 .515-.401c.087-.156.1-.226.099-.558-.001-.313-.017-.409-.089-.547-.104-.197-.267-.322-.519-.398-.257-.077-3.509-.075-3.757.002m11 0a.814.814 0 0 0-.505.396c-.074.139-.089.231-.089.547 0 .331.013.403.1.558.11.197.294.34.515.401.087.024.835.041 1.865.041s1.778-.017 1.865-.041a.842.842 0 0 0 .515-.401c.087-.156.1-.226.099-.558-.001-.313-.017-.409-.089-.547-.104-.197-.267-.322-.519-.398-.257-.077-3.509-.075-3.757.002m0 4a.814.814 0 0 0-.505.396c-.074.139-.089.231-.089.547 0 .331.013.403.1.558.11.197.294.34.515.401.087.024.835.041 1.865.041s1.778-.017 1.865-.041a.842.842 0 0 0 .515-.401c.087-.156.1-.226.099-.558-.001-.313-.017-.409-.089-.547-.104-.197-.267-.322-.519-.398-.257-.077-3.509-.075-3.757.002'>  " buttons = newWiki + exploreWikis; element.insertAdjacentHTML( 'beforeend', buttons ); });

window.CategorizedNotificationsConfig = [ {		icon: 'bell', title: 'Announcements', types: ['announcement'] },	{		icon: 'envelope', title: 'Messages', types: ['message-wall-post', 'message-wall-reply', 'talk-page-message'] },	{		icon: 'comment', title: 'Comments', types: ['article-comment-reply', 'article-comment-at-mention', 'article-comment-reply-at-mention'] },	{		icon: 'blocks', title: 'Discussions', types: ['discussion-reply', 'discussion-upvote-post', 'post-at-mention', 'thread-at-mention'] },	{		icon: 'more', title: 'Miscellaneous', types: ['DEFAULT'] } ];

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:GlobalNavButtons.js',        'u:dev:MediaWiki:CategorizedNotifications.js',        'u:dev:MediaWiki:RandomPageShortcut/code.js',        'u:dev:MediaWiki:MassNullEdit/code.js',        'u:dev:MediaWiki:PageRenameAuto-update/code.js',        'u:dev:MediaWiki:AjaxBatchDelete.js',        'u:dev:MediaWiki:ListFiles/code.js',        'u:dev:MediaWiki:MultiUpload.js',        'u:dev:MediaWiki:WHAM/code.2.js',        'u:dev:MediaWiki:QuickCreateUserPage/code.js'    ] });