User:Josephyr/global.js

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

importScriptPage('User:Monchoman45/ChatHacks.js', 'c');

importScriptPage('User:Monchoman45/ChatPMs.js', 'c');

importScriptPage('User:Joeytje50/tabinsert.js','rs');

importScriptPage('User:Madnessfan34537/multikick.js', 'callofduty');

importScriptPage('User:Madnessfan34537/quickban.js', 'callofduty');

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

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

importScriptPage('MediaWiki:B3.js', 'monchbox');

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

importScriptPage('MediaWiki:WhamAPI.js', 'monchbox');

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

importScriptPage('User:Callofduty4/ChatHacks.js', 'c');

importScriptPage('User:Joeyaa/wham.js','vstf');

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

importScriptPage('Translator/Translator.js', 'dev');

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

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

importArticles({ type:'script', articles:[ 'w:c:dev:AjaxRC/code.js',  'w:c:dev:CollapsibleEdittools/code.js',  'w:c:dev:CollapsibleInfobox/code.js',  'w:c:dev:RevealAnonIP/code.js', //Reveal Anonymous User IP  'w:c:dev:ShowHide/code.js',  'w:c:dev:DisplayClock/code.js',  'w:c:dev:QuickTools/advanced.js',  'w:c:dev:ListFiles/code.js',  'w:c:dev:HideRail/code.js',  'w:c:dev:AjaxBatchDelete/code.js',  'u:wikimarks:Client.js',    ] });

//Importing all script pages

//Chat Tags importScriptPage('ChatTags/code.js', 'dev');

//Chat Options $.getScript("https://raw.github.com/sactage/wikia-js-snippets/master/ChatOptions.js");

//Chat Message Blocker importScriptPage('MessageBlocker/code.js', 'dev');

// ******************* // Custom Buttons // ******************* $(function { $('Special Pages').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('Sandbawx').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('Status').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('Rights</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Leaderboard">Ranking</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/User blog:JosephHawk">Blawg</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Chat">Chat</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Following">Following</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="/wiki/Special:Contributions/JosephHawk">SitRep</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

$(function { $('<a href="http://community.wikia.com/wiki/User:JosephHawk/global.css">Global.css</a></li>').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('<a href="http://community.wikia.com/wiki/User:JosephHawk/global.js">Global.js</a></li>').insertBefore('.AccountNavigation .subnav li:first'); });

// ******************* // Custom edit buttons // *******************

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/central/images/b/b4/Button_category03.png", "speedTip": "Category", "tagOpen": "[[Category:",    "tagClose": "]]", "sampleText": "Category name"}; } if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/3/3b/Button_template_alt.png", "speedTip": "Template", "tagOpen": "", "sampleText": "Template"}; } if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20100502153339/callofduty/images/1/17/Button_Ssig.jpg", "speedTip": "Signature", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/c/c8/Button_redirect.png", "speedTip": "Redirect", "tagOpen": "#redirect",               "tagClose": "", "sampleText": "PAGE"}; } }

// *********************** // End custom edit buttons // ***********************

// ********** // Fastdelete // ********** var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Unnecessary ', 'label': 'Unnec'}; fdButtons[fdButtons.length] = { 'summary': 'Off Topic', 'label': 'Off topic'}; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'Spam'}; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'Housekeeping'};

// Import for Delete & Delete and Protect buttons if (wgNamespaceNumber == 0) { importScriptPage('User:The Mol Man/FastDeleteProtect.js', 'a'); } else { importScriptPage('FastDelete/code.js', 'dev'); }; // ************** // End Fastdelete // **************

switch (skin) { case 'uncyclopedia': case 'wowwiki': case 'lostbook': case 'monobook': $('<a title="View in Oasis" href="/wiki/' + wgPageName + '?useskin=oasis' + mods + '">Oasis</a></li>').appendTo('#p-cactions ul'); break; case 'oasis': case 'wikia': $('<a style="margin-left: 5px" class="wikia-button" title="View in Monobook" href="/wiki/' + wgPageName + '?useskin=monobook' + mods + '"</a>Monobook</a>').css({         margin: '4px 5px 5px',          padding: '1px 12px',          top: '1px'        }).appendTo('#WikiaHeader nav ul'); break; } }