跳转到内容

User:NigelSoft/common.js

维基百科,自由的百科全书

这是本页的一个历史版本,由NigelSoft留言 | 贡献2014年1月27日 (一) 11:00编辑。这可能和当前版本存在着巨大的差异。

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
importScript('User:NigelSoft-Library/Scripts/CSTLiveClock.js');
importScript('User:NigelSoft-Library/Scripts/ProveIt-Security_Version.js');
importScript('User:PhiLiP/wikicache/load.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');
 
});