User:Sjock/extras.js

jQuery(document).ready(function{	// Adds a 'User contributions' button to the User page tabs	var user = /User(_talk)?:(.+?)(\/|&|$)/.exec(window.location.href);	if (user[2] != '') {		var tab = jQuery('')			.attr('id', 'ca-useredits')			.addClass('new');		var span = jQuery(' ');		var link = jQuery('')			.attr('href', '/wiki/Special:Contributions/' + user[2])			.attr('title', 'User contributions [ctrl-alt-e]')			.attr('accesskey', 'e')			.html('User contributions');		jQuery(span).append(link);		jQuery(tab).append(span);		jQuery('#p-namespaces ul').append(tab);	} });