User:Liangent/Scripts/CopyvioFollowups.js
外观
< User:Liangent | Scripts
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
if (wgAction == 'edit') {
var vfd_title = $.query.get('copyvio_vfd')
if (vfd_title.length > 0) {
addOnloadHook(function() {
$('#wpTextbox1')[0].readOnly = $('#wpSummary')[0].readOnly = $('#wpSave')[0].disabled = $('#wpPreview')[0].disabled = $('#wpDiff')[0].disabled = $('#wpMinoredit')[0].disabled = $('#wpWatchthis')[0].disabled = true;
$('#wpTextbox1')[0].value = '{{subst:' + 'CopyvioVFDRecord|' + vfd_title + '}}';
$('#editform')[0].submit();
});
}
}