User:Luqgreg/global.js

window.lastEdited = { avatarsize: 10, comment: false };

// Imports importArticles({   type: 'script',    articles: [        'u:dev:AjaxRC/code.js',        'u:dev:LastEdited/code.js',        'u:dev:MultiUpload/code.js',        'u:dev:ReferencePopups/code.js',        'u:dev:View Source/code.js',        'u:dev:WhatLinksHere/code.js',        'u:pl.luq:User:Luqgreg/common.js'    ] });

$(function {   $('.wds-community-header__wiki-buttons .wds-dropdown .wds-list').html('S:I/NPIU:/SandboxMW:*.css  MW:Common.css</a></li>MW:Wikia.css</a></li>MW:Themes.css</a></li>MW:Infoboksy.css</a></li></ul> </li><li class="wds-dropdown-level-2 wds-is-sticked-to-parent">MW:*.js<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" class="wds-icon wds-icon-tiny wds-dropdown-chevron" id="wds-icons-menu-control-tiny"><path d="M6.003 10.002a.997.997 0 0 1-.707-.293L.293 4.707a.999.999 0 1 1 1.414-1.414l4.296 4.295 4.293-4.293A.999.999 0 1 1 11.71 4.71l-5 5a.997.997 0 0 1-.707.293" fill-rule="evenodd">  </a><div class="wds-is-not-scrollable wds-dropdown-level-2__content"><ul class="wds-list wds-is-linked">MW:Common.js</a></li>MW:Wikia.js</a></li>MW:ImportJS</a></li></ul> </li>'); });

// RC instead of WA under the icon in new nav // Author: Nanaki $(function {   $('.wds-community-header__wiki-buttons a[data-tracking="wiki-activity"]').attr({href: '/wiki/Special:RecentChanges', title: 'Ostatnie zmiany', 'data-tracking': 'recent-changes'}); });

// Additional icon that links to Special:Upload // Author: Nanaki $(function {   var newpage = $('.wds-community-header__wiki-buttons a[data-tracking="add-new-page"]');    newpage.clone.attr({href: '/wiki/Special:Upload', title: 'Prześlij plik', 'data-tracking': 'upload'}).insertAfter(newpage).find('svg').attr('id', '').html('<path d="M 8.984375 0.98632812 A 1.0001 1.0001 0 0 0 8.203125 1.3828125 L 4.2929688 5.2929688 A 1.0001 1.0001 0 1 0 5.7070312 6.7070312 L 8 4.4140625 L 8 12 A 1.0001 1.0001 0 1 0 10 12 L 10 4.4140625 L 12.292969 6.7070312 A 1.0001 1.0001 0 1 0 13.707031 5.2929688 L 9.7910156 1.3769531 A 1.0001 1.0001 0 0 0 8.984375 0.98632812 z M 2.984375 10.986328 A 1.0001 1.0001 0 0 0 2 12 L 2 16 A 1.0001 1.0001 0 0 0 3 17 L 15 17 A 1.0001 1.0001 0 0 0 16 16 L 16 12 A 1.0001 1.0001 0 1 0 14 12 L 14 15 L 4 15 L 4 12 A 1.0001 1.0001 0 0 0 2.984375 10.986328 z "> '); });

// Bypass Special:InfoboxBuilder // Author: Nanaki if($('.template-classification-type-text').data('type') == 'infobox') $('#ca-edit').attr('href', function(a) { return this.href + '&useeditor=source'; })