User:Qinyongr/common.js:修订间差异
外观
创建页面,内容为“// install Wikipedia:User:Cacycle/wikEd in-browser text editor importScriptURI('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=...” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
$(function () { | |||
var hist; var url; | |||
if (!(hist = document.getElementById('ca-history') )) return; | |||
if (!(url = hist.getElementsByTagName('a')[0] )) return; | |||
if (!(url = url.href )) return; | |||
mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), | |||
wgULS('清除快取'), 'ca-purge', wgULS('更新伺服器快取'), '*'); | |||
}); | |||
2016年2月23日 (二) 16:22的版本
$(function () {
var hist; var url;
if (!(hist = document.getElementById('ca-history') )) return;
if (!(url = hist.getElementsByTagName('a')[0] )) return;
if (!(url = url.href )) return;
mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
wgULS('清除快取'), 'ca-purge', wgULS('更新伺服器快取'), '*');
});