User:Rappy/global.js

$(function {   $('.newcategory').addClass('new');    $('.newcategory').each(function {this.href += '?action=edit&redlink=1'});    $('.WikiaHeader nav > ul > li + li').remove;    $('.WikiaHeader nav > ul').append($(' ').hide);    if ($('.editsection').length && wgDB !== "aion") $('.editsection a:last-child').before('[').after(']').text('Edit'); //  $('fieldset div').addClass('test').css('bottom','-10px');    $('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');    $('.WikiaFooter .toolbar .tools').css('float','right');    $('#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:-3px; 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'); // Adds a 'Back to page' link under the preview header when previewing an edit. if (wgAction == "submit") $('#WikiaEditBoxHeader p').clone.appendTo('#WikiaPageHeader:first-child'); if (wgIsEditPage && wgEditPageClass != 'undefined') { $('body').css('padding','3px 0 5px'); $('#WikiaPage').css('margin','-2px auto 0'); }   $('.masthead-info hgroup h2').insertAfter('.masthead-info hgroup h1').css({display: 'inline',paddingLeft: '10px'}).show; $('.UserProfileActionButton').prependTo('.masthead-info hgroup').css({float: 'right', padding: '0'}).show; }); $(window).load(function { $('.ChatModule.module').show; }); // VSTF rollback/revert/delete importScriptPage('User:Joeyaa/wham.js','vstf'); // Quick preview // importScriptPage('User:Quarenon/quickpreview.js', 'runescape'); // PurgeButton PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev');