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" };

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images1.wikia.nocookie.net/central/images/2/29/Button_user.png?1", "speedTip": "Global user template", "tagOpen": "", "tagClose": "", "sampleText": "" }; }

/** * Add stuff to user menu */ $(function { $ ( 'ul.AccountNavigation li:first-child ul.subnav li:first-child' ) . after ( 'ContributionsFollowed pages' ) ; }); ajaxPages = ['Special:RecentChanges', 'Special:WikiActivity']; 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:AjaxBatchDelete/code.js',        'w:c:dev:NoImageLightbox/code.js',        'w:c:dev:FixWantedFiles/code.js',        'w:c:wikimarks:Client.js',        'w:c:admintools:MediaWiki:Wikia.js/editCount.js'  ] });

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

/* */ //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' );	} ); }