Wikipédia:Twinkle/twinkle.js
// Twinkle has moved! // - see WP:TW for more information // - for the code, see Wikipédia:Scripts/Twinkle/Script-Twinkle.js
// This will automatically enable the gadget in the user's preferences mw.loader.using(['user.options', 'mediawiki.api']).then(function() {
if (!wp.options.get('Scripts/Twinkle/Script-Twinkle.js')) { new wp.Api().saveOption('Scripts/Twinkle/Script-Twinkle.js', 1); }
});