User:Jack Phoenix/monobook.js

// ***************************************************************** // Load various external scripts // ***************************************************************** importScriptURI( 'http://community.wikia.com/index.php?title=User:Splarka/fastdelete.js&action=raw&ctype=text/javascript&dontcountme=s' ); //importScriptURI( 'http://en.wikipedia.org/w/index.php?title=User:Zocky/SearchBox.js&action=raw&ctype=text/javascript&dontcountme=s' );

// ***************************************************************** // Custom automatic delete buttons // ***************************************************************** // Adds customizable one-click deletion buttons to any deletable page. // Requires User:Splarka/fastdelete.js var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'nobody cares', 'label': 'UN:N' };

// ***************************************************************** // &bot=1 on contribs pages. // @author Splarka // ***************************************************************** function hideRollback { var botlink = document.location.href; if( botlink.indexOf( '?' ) == -1 ) { botlink += '?bot=1'; } else { botlink += '&bot=1'; }	addPortletLink( 'p-cactions', botlink, '&bot=1', 'ca-bot' ); } if( wgCanonicalSpecialPageName == 'Contributions' ) { addOnloadHook( hideRollback ); }

// You expect me not to know what a box titled "search" is used for? // That's an interesting assumption... $.fn.placeholder = function {};

jQuery( document ).ready( function {	// Use jQuery to remove "my new messages (none)" from the personal links portlet	var newMessagesElement = jQuery( '#pt-newmessages' );	if ( newMessagesElement.length ) {		newMessagesElement.remove;	}

// Change bug tracker link from a wiki page to go to BZ directly jQuery( 'li#n-bugtracker' ).html( 'Bug tracker' ); // Change gerrit to CodeReview, because gerrit won't even load in IE9's default // rendering mode and as such I use CodeReview way more often than gerrit jQuery( 'li#n-mw-repo-commits' ).remove; jQuery( 'li#n-mw-repo-codereview' ).html( 'Code Review' ); // Change browser link to ViewVC instead of gitweb jQuery( 'li#n-browse-repo' ).html( 'Browse repository' ); });