User:Ilmari Karonen/monobook.js

// based on importScript in wikibits.js function importScriptFromEnwiki(page) { var enwikiPrefix = (/^https:/.test(wgServer) ? 'https://secure.wikimedia.org/wikipedia/en' : 'http://en.wikipedia.org'); return importScriptURI(enwikiPrefix + '/w/index.php?action=raw&ctype=text/javascript&title=' + encodeURIComponent(page.replace(/ /g,'_'))); }

importScriptFromEnwiki('User:Ilmari_Karonen/catsort.js'); importScriptFromEnwiki('User:Ilmari_Karonen/replace.js'); importScriptFromEnwiki('User:Ilmari_Karonen/searchnsmenu.js'); importScriptFromEnwiki('User:Ilmari_Karonen/sigdash.js');

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/23/Button_code.png", "speedTip": "Inline program code", "tagOpen": " ", "tagClose": "<"+"/code>", "sampleText": "Some code here"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/2/29/Button_user.png", "speedTip": "User link", "tagOpen": "[\[User:", "tagClose": "|]]", "sampleText": "Example"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/eb/Button_templatelink.png", "speedTip": "Template link", "tagOpen": "{\{[\[Template:", "tagClose": "|]]}}", "sampleText": "Example"}; };