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