User:Bereisgreat/global.js

/* Any JavaScript here will be loaded for all users on every page load. */

importScriptPage('MediaWiki:Search_Fix.js', 'dantest');

importScriptPage('RelatedDiscussionsModule/code.js', 'dev');

/* Code for custom edit buttons (ō, ū characters). */

if (mwCustomEditButtons) {

/*** wrappers *****/ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/deadmanwonderland/images/e/e1/O_Accent_Button.png", "speedTip": "Add the ō character", "tagOpen": "ō", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/deadmanwonderland/images/d/db/U_Accent_Button.png", "speedTip": "Add the ū character", "tagOpen": "ū", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/deadmanwonderland/images/0/05/I_Accent_Button.png", "speedTip": "Add the ī character", "tagOpen": "ī", "tagClose": "", "sampleText": ""}; }

/* Fixed Chat Hacks */

importScriptPage('User:Foodbandlt/FixedChatHacks.js', 'c');

/* PMs button */

if(wgCanonicalSpecialPageName == 'Chat') { function createGroupPM { var users = prompt('Enter comma separated list of users to start a PM with',''); var users = users.split(','); mainRoom.openPrivateChat(users); } $('form#Write').append('Group'); }