Content deleted Content added
title |
me |
||
Line 1:
addPortletLink(
"p-personal", //target tab - personal links
var pro = prompt('Enter wanted title.',wgTitle);▼
javascript:dt(), //link URL
if ( pro==null || pro=="" || pro==wgTitle) {▼
"dt", //link text
alert('Aborted');▼
"pt-dt" //id of new button
return}▼
"dt", //hover text
document.editform.wpTextbox1.value = '{{DISPLAYTITLE:' + pro + '}}\n' + document.editform.wpTextbox1.value;▼
"", //???
document.editform.wpSummary.value = 'added displaytitle tag';▼
document.editform.wpMinoredit.checked = true;▼
document.editform.submit();▼
if (___location.href.indexOf("&action=edit&dt=") == -1) return;
▲addOnloadHook(function() {
dtRegExp = /&action=edit&newstatus=(.*)/;
dt = dtRegExp.exec(___location.href)[1];
▲ document.
▲ document.getElementById('editform').submit();
});
function
▲ alert('Aborted');
▲ return};
document.___location=wgServer + wgScript + "?title=" + wgPageName + "&action=edit&dt=" + pro2;
}
▲});
|