User:Rosechu/global.js

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

// Adds an "Oasis"-button to Monobook; by User:Tm_T

addOnloadHook(add_skin_tab); function add_skin_tab {   var URL = wgServer + wgScript + '?title=' + wgPageName + '&useskin=wikia' addPortletLink('p-cactions', URL, "oasis"); }

// *******************   // Custom edit buttons // *******************   if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/callofduty/images/2/28/Personal_N7_Signature.png", "speedTip": "Signature", "tagOpen": " ~" + "" + "", "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": "", "tagClose": "", "sampleText": "" };           mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/f/fc/Button_supp.png", "speedTip": "Dont Delete Disscusions", "tagOpen": "", "sampleText": "" };           mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/62/Button_stop.png", "speedTip": "Bad Edit", "tagOpen": "", "sampleText": "" };           mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/1/1c/Button_flamme.png", "speedTip": "Vandalism", "tagOpen": "", "sampleText": "" };           mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/66/Button_mort.png", "speedTip": "Block", "tagOpen": "", "sampleText": "" };           mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/__cb20090207063047/callofduty/images/4/4a/Button_welcome.png", "speedTip": "Welcome", "tagOpen": "", "sampleText": "subst:Template:Welc/N7" };       }    }    // ***********************    // 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 // ***************   // ***********    // WikiaActivity to RecentChanges (Thanks to the bros at #wikia for this) // ***********   function WikiActivity2RecentChanges { $('a.wikia-button[data-id$="wikiactivity"]').replaceWith('Recent Changes'); }   addOnloadHook(WikiActivity2RecentChanges); // ***********   // End WikiaActivity to RecentChanges // *********** // ********** // Fastdelete // ********** importScriptPage('FastDelete/code.js', 'dev'); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Unused file', 'label': 'unused'}; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'spam'}; fdButtons[fdButtons.length] = { 'summary': 'Unnecessary', 'label': 'unnecessary'}; // ************** // End Fastdelete // ************** //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 //Watchlist notifier script importScript('User:Joeytje50/watchlist.js'); //End watchlist notifier 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');