// Intentionally using non-strict comparison with ==, not ===, because of phab:T54542if ( mw.user.options.get( 'wikibase-otherprojects' ) == 0 ) {

   mw.loader.using( 'mediawiki.api', function () {       ( new mw.Api() ).postWithToken( 'options', {           action: 'options',           optionname: 'wikibase-otherprojects',           optionvalue: 1       } );   } );

}