User:M D N S/wikia.js

// *************************** // Image licenses dropdown >:D // *************************** var QLicensebuttonFirst = false; var QLicenseDebug = false; var QLicenseUseOutGoingLayout = true; importScriptPage('User:Cakemix/Qlicensev2.js', 'callofduty'); // ******************************* // End Image licenses dropdown >:D // ******************************* //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');

// ******************* // Custom edit buttons // ******************* if (wgAction == "edit" || wgAction == "submit") { /***** Custom edit buttons *****/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20120128095141/callofduty/images/2/2c/CreeperForEmote.jpg", "speedTip": "Vandalism Template", "tagOpen": "", "tagClose": "", "sampleText": "PAGE"}; 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"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://1.bp.blogspot.com/_P69BgsglWcA/TPZCZOXMLCI/AAAAAAAAARk/q1KhAtpTTHw/s1600/l_plate.jpg", "speedTip": "LICENSE", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20120128095141/callofduty/images/2/2c/CreeperForEmote.jpg", "speedTip": "Bad Edit Template", "tagOpen": "", "tagClose": "", "sampleText": "PAGE"}; 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": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://sccreader.files.wordpress.com/2008/11/copyrightsymbol.gif", "speedTip": "Copyrighted Media", "tagOpen": "", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.clker.com/cliparts/4/2/0/c/11954452301922936529public_domain_icon_blue_01.svg.hi.png", "speedTip": "Public Domain", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/3/3e/Tree-256x256.png", "speedTip": "No IRL", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://marketingbean.files.wordpress.com/2008/01/let-b.jpg", "speedTip": "Banned", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://www.murrayschools.org/schools2/mhs/images/U.jpg", "speedTip": "Unbanned", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "https://upload.wikimedia.org/wikipedia/commons/2/22/DJCTQ_-_L.svg", "speedTip": "Leaked", "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://www.vjcx.com/pictures/center-html-tag.jpg", "speedTip": "Center", "tagOpen": " ", "tagClose": " ", "sampleText": "" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/__cb20070329065150/central/images/d/d5/Button_noinclude.png", "speedTip": "Noinclude", "tagOpen": "<"+"noinclude"+">[[Category:",               "tagClose": "]]<"+"/noinclude"+">", "sampleText": "Text"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20080111185517/central/images/6/60/Button_support.png", "speedTip": "Support", "tagOpen": " ", "tagClose": " ~"+""+"", "sampleText": "Reasoning"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images2.wikia.nocookie.net/__cb20080111185614/central/images/9/98/Button_oppose.png", "speedTip": "Oppose", "tagOpen": " ", "tagClose": " ~"+""+"", "sampleText": "Reasoning"};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/__cb20100304205745/callofduty/images/0/03/Al-Asad.jpg", "speedTip": "Speedy delete", "tagOpen": "", "tagClose": "", "sampleText": ""}; } }

// ***************************** // Kill image popup (from Rappy) // ***************************** $(function changeimagelinks {   if (window.skin == 'oasis') {        var article = $('#WikiaArticle, .LatestPhotosModule, #article-comments');    }    else {        var article = $('#bodyContent');    }    article.unbind('click.lightbox');    var a = document.getElementsByTagName("a");    for ( var t = 0; t < a.length; ++t ) {        var a2 = a[t];        var img = a2.getElementsByTagName("img");        if ( img[0] != null ) {            if ( a2.href.indexOf("images.wikia.com") != -1 ) {                var link = wgServer + '/wiki/File:' + a2.href.substring(a2.href.lastIndexOf('/') + 1);                a2.setAttribute('href',link);            }        }    } });

/* stuff */ $(function { $('Recent Changes').insertBefore('.AccountNavigation .subnav li:first'); }); $(function { $('War Room').insertBefore('.AccountNavigation .subnav li:first'); });

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

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

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

/* end stuff */

// ***********   // WikiaActivity to RecentChanges (Thanks to the bros at #wikia for this) // ***********   function WikiActivity2RecentChanges { $('a.wikia-button[data-id$="wikiactivity"]').replaceWith('<img height="0" width="0" class="sprite activity" src="http://images1.wikia.nocookie.net/common/skins/common/blank.gif">Recent Changes</a>'); }   addOnloadHook(WikiActivity2RecentChanges); // ***********   // End WikiaActivity to 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 //Watchlist notifier script importScript('User:Joeytje50/watchlist.js'); //End watchlist notifier script

importScript('User:Sactage/rbs.js');