User:Matik7/global.js

window.ajaxPages = ["Special:RecentChanges","Specjalna:Ostatnie_zmiany","Specjalna:Aktywność_na_wiki","Special:WikiActivity"]; window.AjaxRCRefreshText = 'Automatyczne odświeżanie'; window.AjaxRCRefreshHoverText = 'Włącza automatyczne odświeżanie strony'; importScriptPage('AjaxRC/code.js', 'dev');

importScriptPage('User:Wedkarski/chatpack.js', 'wed');

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

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

importArticles({   type: 'script',    articles: [        'w:c:nanaki:MessagingCleanup/code.js'    ] });

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

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

// Spacja by Matik7 $('[name="message"]').keypress(function(e) { if (e.which == 32||e.which == 13) { this.value = this.value.replace('/spacja', 'Przed znakami interpunkcyjnymi nie stawia się spacji!'); } })

// MATIKOWE EMOTIKONY by Super Miron var faces = [ ["( ͡° ͜ʖ ͡°)", "♫ ♪"], ["¯\_(ツ)_/¯", "༼ つ ◕_◕ ༽つ"], ["ಠ_ಠ", "( ͡° ʖ̯ ͡°)"], ["(✖╭╮✖)", "ʕ ͡·ᴥ ͡· ʔ"] ]; var facesTable = ""; for(var i=0; i'+faces[i][j]+' '; }   facesTable += " "; } $('form#Write').append('Matikony'); $("body").append(' '); function toggleFaces { $("table#faces").toggle; } var inputbox = '#Write textarea[name="message"]'; function inputboxAppend(s){ var inputboxVal = $(inputbox).val; if ( inputboxVal != '' ) { if ( inputboxVal[inputboxVal.length-1] != " " ) { var val = inputboxVal + ' ' + s;		} else { var val = inputboxVal + s;		} $(inputbox).val(''); } else { var val = s;	} $(inputbox).focus; $(inputbox).val(val); } $('table#faces td').click(function{   inputboxAppend($(this).html); }); appendCSS('table#faces td { cursor: pointer !important; }');