User:WPCleaner (bot)/common.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
importScript('User:NigelSoft-Library/Scripts/CSTLiveClock.js');
importScript('User:Isnow/CategoryPageForm.js');
mw.util.addPortletLink(
'p-personal',
'//tools.wmflabs.org/checkwiki/cgi-bin/checkwiki.cgi?project=zhwiki&view=all',
'错误检查工具',
'pt-check_wikipedia_tool',
'Check Wikipedia 工具',
null,
'#pt-preferences'
);
importScript('User:PhiLiP/wikicache/load.js');
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki:Gadget-DotsSyntaxHighlighter.js&action=raw&ctype=application/javascript&smaxage=21600&maxage=86400');
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript');
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:TMg/cleanDiff.js&action=raw&ctype=text/javascript');
$(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('更新服务器缓存'), '*');
});