User:DeXart/global.js

importScriptPage('MediaWiki:PortableCSSPad/code.js', 'dev');           // PortableCSSPad importScriptPage('MediaWiki:WHAM/pl/code.2.js', 'dev');                // WHAM! importScriptPage('User:Wedkarski/chatpack.js', 'wed');                 // ChatPack

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; }');