User:Semanticdrifter/global.js

importScriptPage( 'AjaxRC/code.js', 'dev' );

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

//Lookupuser by Rappy var namespaces = ["2", "500", "1200"]; if ($.inArray(wgNamespaceNumber, namespaces)) { var user = wgPageName.split(':')[1]; $('', {          class: 'overflow'       }) .append(          $('', { href: 'http://community.wikia.com/Special:LookupUser?target=' + user, text: 'LookupUser' })      )       .appendTo('#WikiaBar .toolbar .tools'); }

/* */