跳转到内容

User:Liangent/Scripts/CopyvioFollowups.js

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ 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();
        });
    }
}