User:Rappy/global.js

// Fast Delete importScriptPage('FastDelete/code.js', 'dev');

importScriptURI('http://internal.vstf.wikia.com/index.php?title=User:Rappy_4187/scripts.js&action=raw&ctype=text/javascript');

//fast delete buttons var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'SP' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'VA' }; fdButtons[fdButtons.length] = { 'summary': 'Housekeeping', 'label': 'HK' };

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

$(function {   $('.WikiaFooter .toolbar .tools').css('float','right');    if ($('.WikiaConfirmation').length) {      $('.WikiaConfirmation').prependTo('#WikiaPage .WikiaPageContentWrapper');    }    $('#catlinks .newcategory, #WikiaArticle .newcategory').addClass('new');    $('#catlinks .newcategory, #WikiaArticle .newcategory').each(function {this.href += '?action=edit&redlink=1'});    $('.WikiaHeader nav > ul > li + li').remove;    $('.WikiaHeader nav > ul').append($(' ').hide);    if ($('.mw-headline + .editsection').length && wgDBname !== "aion" && wgDBname !== "admintools") $('.mw-headline + .editsection a:last-child,').before('[').after(']').text('edit');    $('a[data-id="wikiactivity"]').attr({title: 'Recent Changes',href: '/wiki/Special:RecentChanges'}).html('Recent Changes').clone.appendTo('ul.tools').removeClass('wikia-button secondary').wrap('').css('color','white'); $('#wpSave').attr('value','Save changes'); $('a[data-id="move"]').html('Move'); $('.tabs > li > a[title="Special:Following"]').attr({href: '/wiki/Special:Watchlist',title: 'The list of pages you are monitoring for changes [l]',accesskey: 'l'}).text('Watchlist'); $('a[data-id="editprofile"]').html('Edit'); if ($('#WikiaSearch').length) { $('#WikiaSearch').appendTo('#mysearch').attr('style', 'padding-left:15px; margin-top:-5px; color: ' + $('body').css('color')).show; $('#mysearch').show; $('#WikiaHeader nav ul').append('Aion WikiForums'); }   $('#WikiaSearch input:first').addClass('mysearch'); $('#WikiaSearch button').addClass('mysearchbutton'); // $('.WikiHeader .shadow-mask').css({'backgroundColor': $('body').css('backgroundColor'),'borderTop': '1px solid ' + $('#WikiaPage').css('borderTopColor'),'borderBottom': '1px solid ' + $('#WikiaPage').css('borderTopColor')}).show; $('wikia.csswikia.jsGlobal.css</a></li><a href="http://c.wikia.com/wiki/Special:MyPage/global.js" data-id="mygjs">Global.js</a></li>').insertAfter('.AccountNavigation .subnav li:first'); $('.masthead-info hgroup h2').insertAfter('.masthead-info hgroup h1').css({display: 'inline',paddingLeft: '10px'}).show; $('.UserProfileActionButton').prependTo('.tabs-container').css({margin: '4px 320px 0 0', float: 'right', padding: '0'}).show;

var mods = ""; if (document.URL.indexOf('?') != -1) { mods = '&' + document.URL.substring(document.URL.indexOf('?') +1); if (mods.indexOf('&useskin=') != -1) { mods = mods.replace(/&useskin=\w+/,""); } }  switch(skin) { case 'uncyclopedia': case 'wowwiki': case 'lostbook': case 'monobook': $('<a title="View in Oasis" href="/wiki/' + fbReturnToTitle + '?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/' + fbReturnToTitle + '?useskin=monobook' + mods + '"</a>Monobook</a>').css({margin: '4px 5px 5px', padding: '1px 12px', top: '1px'}).appendTo('#WikiaHeader nav ul'); break; } });