User:UltimateSupreme/global.js

if ( ( skin === "oasis" || skin === "wikia" )&& wgAction !== "edit" ) { importStylesheetPage("User:UltimateSupreme/global.css", "community"); jQuery(function($) { $ ( ' Recent Changes' ) . insertAfter ( "#WikiHeader .buttons .wikia-button[data-id=wikiactivity]" ) . before ( ' ' ) ;    }); } /* Custom edit buttons* Original by User:Grunny*/ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/7/73/Button_code_nowiki.png?1", "speedTip": "code nowiki", "tagOpen": " ", "sampleText": "Insert code here" }; } /** * Add stuff to user menu */ $(function { $ ( 'ul.AccountNavigation li:first-child ul.subnav li:first-child' ) . after ( 'ContributionsFollowed pages' ) ; }); //Config for Ajax-Refresh ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];

//Config for fastdelete buttons var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'spam'}; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'vandal'};

//Config for inactive users InactiveUsers = { debug: true }; importArticles({   type: 'script',    articles: [        'w:c:dev:FastDelete/code.js',        'w:c:dev:AjaxUndo/code.js',        'w:c:dev:PurgeButton/code.js',        'w:c:dev:AjaxRC/code.js',        'w:c:dev:InactiveUsers/code.js',        'w:c:dev:FixWantedFiles/code.js',        'w:c:admintools:MediaWiki:Wikia.js/editCount.js'        'w:c:avatar:MediaWiki:Common.js/rollbacktag.js'  ] });

RailgunConfig = { isDebug: true }; importScriptURI('http://railgunscript.wikia.com/wiki/MediaWiki:RailgunClient.min.js?action=raw&ctype=text/javascript&maxage=86400&smaxage=86400');

//Mass rollback button [v 0.2] written by Grunny //will open all rollback links displayed on contrib pages (Use with caution) function rollbackEverythingButton { if ( $( '.mw-rollback-link a' ).length ) { insertContentSubContribLink( 'javascript:rollbackEverything', 'rollback all' ); } } if( wgCanonicalSpecialPageName === 'Contributions' ) { $( rollbackEverythingButton ); } function rollbackEverything { $( '.mw-rollback-link a' ).each( function { var href = $( this ).attr( 'href' ); $.get( href ); $( this ).text( 'gone' ).css( 'color', 'grey' ).removeAttr( 'href' ); } ); } //jQuery version of Splarka's insertContentSubContribLink, by Grunny function insertContentSubContribLink( link, text ) { $( '#contentSub > a:last' ).after( ' | ' + text + '' ); }