User:Jonathan5566/global.js

var l = '//meta' + '.' + 'wikimedia' + '.' + 'org'; if ( ['zh', 'zh-hant', 'zh-tw', 'zh-hk', 'zh-mo'].indexOf(mw.config.get('wgUserLanguage')) !== -1 ) { $('#pt-mycontris a').text('我的貢獻 (' + mw.config.values.wgUserEditCount + ')'); } else if ( ['zh-hans', 'zh-cn', 'zh-my', 'zh-sg'].indexOf(mw.config.get('wgUserLanguage')) !== -1 ) { $('#pt-mycontris a').text('我的贡献 (' + mw.config.values.wgUserEditCount + ')'); } else if ( mw.config.get('wgUserLanguage') == 'qqx') { $('#pt-mycontris a').text('(mycontris)-(wgUserEditCount)'); } else { $('#pt-mycontris a').text($('#pt-mycontris a').text + '(' + mw.config.values.wgUserEditCount + ')'); }

$('#pt-mycontris a').attr('href', '/wiki/Special:Contributions/' + mw.config.get('wgUserName'));

mw.loader.getScript( l + '/w/index.php?title=User:Sunny00217/global.js/load.js&action=raw&ctype=text/javascript' ).then( function {	new load.js.push([ ["User:Sunny00217/global.js/popups_setting.js", l], ["User:Sunny00217/global.js/sectionlink.js", l], ["User:Sunny00217/global.js/markRights.js", l], ["User:Sunny00217/global.js/signtime.js", l], ["User:Sunny00217/global.js/wikibreak.js", l], ["User:Sunny00217/importer.js", l]	]);	new load.css.push([ ["zh:User:A2569875-sandbox/MyPopups.css", l]	]); } );

/** SpecialInterlanguageLink = { "lang": { "m": "Meta", "c": "Commons" "w:zh": "中文" },	"namespace": [-1] }; mw.loader.load('//zh' + '.' + 'wikipedia' + '.' + 'org' + '/w/load.php?modules=ext.gadget.site-lib');

$(function {	var historylink_tag = $('#ca-history a')[0];	if (!historylink_tag) {		return;	}	var historylink = new URL(historylink_tag.href);	if (historylink.href == new URL(window.location.href).href) {		return;	}	historylink.searchParams.set('action', 'purge');	mw.util.addPortletLink('p-cactions', historylink.href, '清除快取', 'ca-purge', '更新伺服器快取'); });