注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
jQuery(function() {
jQuery('.mw-rollback-link a').click(function(event) {
var summary = prompt('Summary:');
if (summary === null) {
event.preventDefault();
} else {
this.href += '&summary=' + encodeURIComponent(summary);
}
}).css({'color': '#009999'});
});