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

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

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

// Change bug tracker link from a wiki page to go to BZ directly jQuery( 'li#n-mw-bugtracker' ).html( 'Bug tracker' );

// Improving usability if ( jQuery( '#pt-uls' ).length ) { jQuery( '#pt-uls' ).remove; }

$.fn.languagesettings = $.fn.uls = mw.uls = mw.ime = {}; });