User:Matik7/global.js

// Imports importScriptPage('MediaWiki:PortableCSSPad/code.js', 'dev');           // PortableCSSPad importScriptPage('MediaWiki:WHAM/pl/code.2.js', 'dev');                // WHAM! importScriptPage('User:Wedkarski/SpongeKiller.js', 'wed');             // SpongeKiller importScriptPage('User:PlasmaTime/quickBlock.js','c');                 // QuickBlock importScriptPage('MediaWiki:MassRenameRevert/code.js', 'dev');         // MassRenameRevert importScriptPage('MediaWiki:Wikia Essentials/code.js', 'dev');         // Wikia_Essentials importScriptPage('MediaWiki:NullEditButton/code.js', 'dev');           // NullEditButton importScriptPage("MediaWiki:FileUsageAuto-update/code.js", "dev");     // FileUsageAuto-update importScriptPage("MediaWiki:QuickContribs/code.js", "dev");            // QuickContribs importScriptPage('MediaWiki:ViewRemoved/code.js', 'dev');              // ViewRemoved importScriptPage('MediaWiki:ReplyBottom/code.js', 'dev');              // ReplyBottom importScriptPage('MediaWiki:ListFiles/code.js', 'dev');                // ListFiles importScriptPage('MediaWiki:SearchSuggest/code.js', 'dev');            // SearchSuggest importScriptPage('MediaWiki:FindAndReplace/code.js', 'dev');           // FindAndReplace importScriptPage('MediaWiki:Interwiki.js', 'community');               // Interwiki importScriptPage('YouTubeModal/code.js', 'dev');                       // YouTubeModal importScriptPage('MediaWiki:PrivateMessageAlert/code.js', 'dev');      // PrivateMessageAlert importScriptPage('MediaWiki:DiscussionsFeed.js', 'dev');               // DiscussionsFeed importScriptPage('MediaWiki:ChatUserPageButton.js', 'dev');            // ChatUserPageButton importScriptPage('MediaWiki:QuickCreateUserPage.js', 'dev');           // QuickCreateUserPage importScriptPage('MediaWiki:Linksweeper/code.js', 'dev');              // Linksweeper importScriptPage('User:Wedkarski/blogfix.js', 'wed');                  // Blogfix importScriptPage('User:Szynka013/global.js', 'c');                  // Szynka // BUTTON MESSAGE WALL GREETING function AddNavigationLinks { $('Nagłówek tablicy').insertAfter($('.AccountNavigation .subnav li a[data-id="preferences"]').parent); } addOnloadHook(AddNavigationLinks);

importArticles({   type: 'script',    articles: [        'u:dev:PortableCSSPad/code.js'    ] });

importArticles({   type: "script",    articles: [        "u:dev:ListFiles/code.js"    ] });

importArticles({   type: 'script',    articles: [        'u:dev:SearchSuggest/code.js'    ] }); // LastEdit importArticles( {   type: 'script',    articles: [        'u:dev:MediaWiki:LastEdited/code.js',    ] } ); window.lastEdited = { avatar: true, position: 'top', size: true, diff: true, comment: true, lang: 'pl', time: true }; // AjaxRC window.ajaxPages = ["Special:RecentChanges","Specjalna:Ostatnie_zmiany"]; window.AjaxRCRefreshText = 'Automatyczne odświeżanie'; window.AjaxRCRefreshHoverText = 'Włącza automatyczne odświeżanie strony'; importScriptPage('MediaWiki:AjaxRC/code.js', 'dev'); // LICENSES FILE function emptyLicenseAlert(form) { var msg = "Licencja pliku nie została wybrana. Możesz spróbować ponownie, ale pamiętaj, że pliki bez licencji są usuwane." if(window.emptyLicenseWarningDelivered) return true; if($('#wpLicense').val == '') { alert(msg); window.emptyLicenseWarningDelivered = true return false }	return true; } $('#mw-upload-form').submit(function(e) {return emptyLicenseAlert(this);}); $(".wikia-gallery-item .thumbimage").each(function(i,elem) {		$(elem).attr('title',$(elem).attr('alt'));	}); $(".wikia-gallery-item .image").each(function(i,elem) {		$(elem).attr('title',$(elem).attr('alt')); });

// Dodaje link do panelu administratora, bo nie działa $(function addAdminDashboardLink {	$('.wikia-bar .toolbar .tools').append('Administrator'); }); addOnloadHook(addAdminDashboardLink);

$('#WikiHeader .buttons').html('Dodaj stronę ');

function blogFix { $(document).keydown(function(e){       if (e.keyCode == 13) {            $('#ok').click;        }    }) } if ($("body").hasClass("mw-special-CreateBlogPage")) { addOnloadHook(blogFix) }

// Dodaj obraz u góry po prawej $(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 id="path8417" 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 "> '); });

// No Infobox Builder if ($('.template-classification-type-text').data('type') == 'infobox') $('#ca-edit').attr('href', function(a) {   return this.href + '&useeditor=source'; }) if(window.location.pathname.indexOf('Special:InfoboxBuilder') != -1) {var pname = window.location.pathname.split('Special:InfoboxBuilder/')[1]; location.replace(document.URL.replace(window.location.href.split('/wiki/')[1],'Template:'+pname+'?action=edit&useeditor=source'));}