User:AngeCI/common.js

// WP:POPUP设置 // User:Lupin/popups.js - please include this line importScript("MediaWiki:Gadget-popups.js"); popupDelay = 0.1; // 接近立刻显示 importScript("Wikipedia:維基百科工具/強迫更新/purge.js"); //Wikipedia talk:維基百科工具/強迫更新/purge.js中的提议 //User:Alexsh/purgecache.js addOnloadHook(function {    var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), wgULS('清除缓存','清除快取'), 'ca-purge', wgULS('清理服务器缓存','清理伺服器快取'), 'p'); });