User:Surgematrix/perlink.js

jQuery(document).ready(function ($) {	if($('#t-permalink')) {		$('#t-permalink > a').bind("click", function { prompt("PermaLink", "en:Special:PermaLink/" + mw.config.get('wgRevisionId') + ""); return false; });	}	//remove title from permalink	var pLink = document.getElementById('t-permalink');	if (pLink) pLink.firstChild.href = pLink.firstChild.href.replace(/title=[^&]*&/,''); });