MediaWiki:Gadget-Twinkle.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Kenrick95 (bicara | kontrib)
Repo at 5c1e7e3: Update from Github
Kenrick95 (bicara | kontrib)
Repo at a0a6001: Update from Github
Baris 428:
 
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;
}