getUserObj(); $pages = []; $config = $this->getConfig(); if ( $context->getSkin() === Constants::SKIN_NAME_MODERN && $config->get( 'VectorShareUserScripts' ) && $config->get( MainConfigNames::AllowUserCss ) && $user->isRegistered() ) { $userPage = $user->getUserPage()->getPrefixedDBkey(); $pages["$userPage/vector.js"] = [ 'type' => 'script' ]; } return $pages; } }