User:Jimmy Xu/common.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
importScript('User:Jimmy_xu_wrk/scripts/cactions.js');
importScript('User:Bencmq/Mass rollback.js');
importScript('User:Bencmq/script/CheckUser.js');
/*
popupAdminLinks = true;
popupShortcutKeys = true;
popupFixRedirs = true;
popupRedlinkRemoval = true;
popupFixDabs = true;
popupRevertSummaryPrompt = true;
*/
if (/\/Wikipedia:(?:CV|%E9%A0%81%E9%9D%A2%E5%AD%98%E5%BB%A2%E8%A8%8E%E8%AB%96\/%E7%96%91%E4%BC%BC%E4%BE%B5%E6%AC%8A)$/.test(document.referrer)) {
var $d = $('#ca-delete a');
$d.attr('href', $d.attr('href') + encodeURI('&wpReason=侵犯版权'));
}
$(function () {
addPortletLink('p-navigation', wgArticlePath.replace('$1', 'User:Jimmy_xu_wrk/scripts'), 'Scripts', 'n-scripts', 'Scripts');
addPortletLink('p-navigation', wgArticlePath.replace('$1', 'User:Jimmy_xu_wrk/common.js'), 'common.js', 'n-commonjs', 'common.js');
addPortletLink('p-navigation', wgArticlePath.replace('$1', 'User:Jimmy_xu_wrk/common.css'), 'common.css', 'n-commoncss', 'common.css');
addPortletLink('p-tb', wgArticlePath.replace('$1', 'Special:PrefixIndex/' + encodeURIComponent(wgPageName)), '前缀索引', 't-prefixindex', '所有具有此前缀的页面', 'i', document.getElementById('t-upload'));
addPortletLink('p-personal', 'irc://irc.wikimedia.org/#zh.wikipedia', 'RC->IRC', 'pt-irc', 'the Wikimedia RC->IRC gateway', '', document.getElementById('pt-logout'));
});
/* nmb */
$('abbr.newpage').each(function () {
$(this).html('n');
});
$('abbr.minoredit').each(function () {
$(this).html('m');
});
$('abbr.botedit').each(function () {
$(this).html('b');
});
$('li#ca-wikilove a').text('友爱');
$('li#ca-varlang-0 a').text('不');
$('li#ca-varlang-1 a').text('简');
$('li#ca-varlang-2 a').text('繁');
$('li#ca-varlang-3 a').text('陆');
$('li#ca-varlang-4 a').text('港');
$('li#ca-varlang-5 a').text('澳');
$('li#ca-varlang-6 a').text('马');
$('li#ca-varlang-7 a').text('台');
$('div#p-logo a').attr('style', 'background-image: url(/media/wikipedia/zh/archive/6/62/20100630172146%21Wiki_zh-hans.png) !important');
/* CurRevisionId */
$('h1#firstHeading span[dir=auto]').text(wgPageName);
$('h1#firstHeading').append($('<span />').attr('id', 'currevid').css('font-size', 'medium').text(' ' + wgCurRevisionId + ' / ' + wgArticleId));
$("#p-lang a").each(function () {
var $t = $(this);
$t.attr('title', $t.text()).text($t.attr('lang')).removeAttr('lang');
});
importScript('User:Liangent/Scripts/UndoRange.js');