MediaWiki:Gadget-Twinkle.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Kenrick95 (bicara | kontrib)
Repo at 5c1e7e3: Update from Github
Jon (WMF) (bicara | kontrib)
<maintenance> more info TypeError: Twinkle[module] is not a function. (In 'Twinkle[module]()', 'Twinkle[module]' is undefined)
 
(5 revisi perantara oleh 2 pengguna tidak ditampilkan)
Baris 91:
welcomeUserOnSpeedyDeletionNotification: [ 'db', 'u1', 'u2', 'u3', 'u4', 'u6', 'u10', 'u11', 'u12', 'u13', 'u14', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'a10', 'a11', 'b1', 'b2', 'b3', 'b7', 'b9', 'b10', 'h3', 'h5', 't2', 't3', 'p1', 'p2' ],
notifyUserOnSpeedyDeletionNomination: [ 'db', 'u1', 'u2', 'u3', 'u4', 'u6', 'u10', 'u11', 'u12', 'u13', 'u14', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'a10', 'b1', 'b2', 'b3', 'b7', 'b9', 'b10', 'h3', 'h5', 't2', 't3', 'p1', 'p2' ],
openUserTalkPageOnSpeedyDeletewarnUserOnSpeedyDelete: [ 'db', 'u1', 'u2', 'u3', 'u4', 'u5u6', 'u10', 'u11', 'u12', 'u13', 'u14', 'a1', 'a2', 'a3', 'a5', 'a7', 'a9', 'a10', 'a11', 'b1', 'b2', 'b3', 'b7', 'b9', 'b10', 'h3', 'h5', 't2', 't3', 'p1', 'p2' ],
promptForSpeedyDeletionSummary: [],
deleteTalkPageOnDelete: true,
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;
}
Baris 463:
return disabledModules.indexOf(mod) === -1;
}).forEach(function(module) {
if ( typeof Twinkle[module]( === 'function' ); {
Twinkle[module]();
}
});
Twinkle.config.init(); // Can't turn off