MediaWiki:Gadget-Twinkle.js: Perbedaan revisi

Repo at a0a6001: Update from Github
(Repo at 5c1e7e3: Update from Github)
(Repo at a0a6001: Update from Github)
 
Twinkle.load = function () {
// Don't activate on special pages other than those onlisted the whitelisthere, so that
// theythat others load faster, especially the watchlist.
var specialPageWhitelistactiveSpecialPageList = [ 'Block', 'Contributions', 'Recentchanges', 'Recentchangeslinked' ]; // wgRelevantUserName defined for non-sysops on Special:Block
if (Morebits.userIsSysop) {
specialPageWhitelistactiveSpecialPageList = specialPageWhitelistactiveSpecialPageList.concat([ 'DeletedContributions', 'Prefixindex' ]);
}
if (mw.config.get('wgNamespaceNumber') === -1 &&
specialPageWhitelistactiveSpecialPageList.indexOf(mw.config.get('wgCanonicalSpecialPageName')) === -1) {
return;
}