MediaWiki:Gadget-purge.js
跳转到导航
跳转到搜索
- 其他语言中
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 设置(Mac为Opera → 选项),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
// jshint jquery:true, esversion:5
/* globals require, module, mediaWiki, mw, OO */
// Make the purge tab work as it used to without a confirmation page by
// sending it using POST
'use strict';
$( function() {
$( '#ca-purge a' ).on( 'click', function( e ) {
var $form = $( '<form>' ).attr( {
method: 'POST',
action: this.href,
} ).appendTo( document.body );
$form.submit();
e.preventDefault();
} );
} );