User:Shiny Pichu/global.js

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

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

// Adds an "Oasis"-button to Monobook; by User:Tm_T $(function add_skin_tab {   var URL = wgServer + wgScript + '?title=' + wgPageName + '&useskin=wikia';    addPortletLink('p-cactions', URL, "wikia"); });

// ******************* // Custom edit buttons // ******************* if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/rosepichu/images/7/79/RosechuSigButton.png", "speedTip": "Signature", "tagOpen": "{" + "{w:User:Rosechu/Sig}} ~" + "" + "", "tagClose": "", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/82/Nowiki_icon.png", "speedTip": "NoWiki", "tagOpen": " ", "tagClose": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png", "speedTip": "References", "tagOpen": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6a/Button_sup_letter.png", "speedTip": "SuperScript", "tagOpen": " ", "tagClose": " ", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/a/aa/Button_sub_letter.png", "speedTip": "SubScript", "tagOpen": " ", "tagClose": " ", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/9/9d/Button_halt.png", "speedTip": "Trolling", "tagOpen": "{" + "{Trolling| ~" + "" + "}}", "tagClose": "", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png", "speedTip": "Dont Delete Disscusions", "tagOpen": "{" + "{DDD|", "tagClose": "{" + "{w:User:Rosechu/Sig}} ~" + "" + "}}", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_stop.png", "speedTip": "Bad Edit", "tagOpen": "{" + "{Bad Edit|", "tagClose": "|{" + "{w:User:Rosechu/Sig}} ~" + "" + "}}", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_flamme.png", "speedTip": "Vandalism", "tagOpen": "{" + "{Vandalism|", "tagClose": "|{" + "{w:User:Rosechu/Sig}} ~" + "" + "}}", "sampleText": "" };       mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/66/Button_mort.png", "speedTip": "Block", "tagOpen": "{" + "{Blocked|", "tagClose": "|{" + "{w:User:Rosechu/Sig}} ~" + "" + "}}", "sampleText": "" };   } } // *********************** // End custom edit buttons // *********************** //Please remove any old Qlic. var QLicensebuttonFirst = false; //Adds the button before the selector var QLicenseDebug = false; //Debug to console [You need firebug if firefox, else just press ctrl + shift + J at chrome] var QLicenseUseOutGoingLayout = false; //adds the thing outside of the layout [Oasis pl0x] importScriptPage('User:Cakemix/Qlicensev2.js', 'callofduty');

// ******************************* // Disable popup window for images // ******************************* window.wgEnableImageLightboxExt = false;

// *********************************** // End disable popup window for images // *********************************** // *********** // Quick block // *********** importScriptPage('User:Azuris/quickblock.js', 'callofduty');

// *************** // End Quick block // *************** importScriptPage('User:Joeyaa/wham.js', 'vstf');

$(function ChangeLogoLink {   $('#p-logo a').attr('href', '/wiki/Special:RecentChanges'); });

//Makes WA into RC if (wgPageName == 'Special:WikiActivity' && document.body.className.indexOf('skin-oasis') != -1) { window.location = '/wiki/Special:RecentChanges'; }

//Watchlist notifier script

importScript('User:Joeytje50/watchlist.js');

//End watchlist notifier script

//Category watch script

//Enter category to be watched here var cgwatch1 = " ";

//Do not edit this line importScript('User:Joeytje50/categories.js');

//End category watch script

function BlogCommentSpeedyDeleteButtons { var deleteOptions = { 'None': 'None', 'Spam/Nonsense': 'Spam', 'Flaming': 'Flame', 'Off-topic': 'OffTopic' };   var deleteoptstr = ''; for (var i in deleteOptions) { deleteoptstr += '' + deleteOptions[i] + ' '; }   var html = '' + deleteoptstr + ' Delete (Speedy)'; var commentArray = $('#article-comments-ul li .tools'); for (var i = 0; i < commentArray.length; i++) { $(commentArray[i]).append(html); $(commentArray[i]).children('.blog-speedy-button')[0].onclick = function(event) { var select = this.previousSibling; if (select.options[select.selectedIndex].innerHTML != "None") { api.send(new api.Query(api, 'POST', { 'action': 'delete', 'title': wgPageName, 'reason': select.options[select.selectedIndex].value }, function(result) { window.location = wgServer + '/index.php?title=' + wgPageName + '&action=purge'; }));           } else { alert('Please select a delete reason.'); }       }    } } addOnloadHook(BlogCommentSpeedyDeleteButtons); importScriptPage('MediaWiki:APIQuery.js', 'monchbox');