diff --git a/README.md b/README.md
index 42120e0..ea7709b 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,6 @@ See license [here](https://github.com/CodeforcesContestHelper/CCHv2/blob/main/LI
## Donation
https://afdian.net/@cfcontesthelper
-## Chatting
+## Star History
-- Discord: [click here](https://discord.gg/natZEphAmS)
-- QQ: group number: 458610798
+[](https://star-history.com/#CodeforcesContestHelper/CCHv2)
diff --git a/index.html b/index.html
index d868a8e..f325418 100644
--- a/index.html
+++ b/index.html
@@ -1102,6 +1102,16 @@
+
+
+
Radio Name
+
Radio Addition
+
+
+
+
+
+
diff --git a/js/authorize.js b/js/authorize.js
index 272186a..af39435 100644
--- a/js/authorize.js
+++ b/js/authorize.js
@@ -17,6 +17,10 @@ function loadLoginType(){
currentLoginHandle = hdl;
if(problemNewWinLoaded) initProblemNewWin();
$(".settingsLoginType").html(`${languageOption.general.currentUser.format([hdl])}`);
+ if(settings.loadMyInfoWhenLogin)
+ {
+ infoLoadUsername(currentLoginHandle,true);
+ }
}
else{
currentLoginHandle = "";
@@ -122,6 +126,10 @@ function submitLogin(){
currentLoginHandle = hdl;
if(problemNewWinLoaded) initProblemNewWin();
$(".settingsLoginType").html(`${languageOption.general.currentUser.format([hdl])}`);
+ if(settings.loadMyInfoWhenLogin)
+ {
+ infoLoadUsername(currentLoginHandle,true);
+ }
},
error: function(){
$(".settingsLoginButton").html(`${languageOption.error.errorLoginFailed}`);
diff --git a/js/locale.js b/js/locale.js
index 8e23622..fe037a0 100644
--- a/js/locale.js
+++ b/js/locale.js
@@ -322,6 +322,10 @@ var lang_en = {
" Open Notification",
"Choose if notifications of hacks, contest notifications or submission results should be sent."
],
+ loadMyInfoWhenLogin: [
+ " Load introduction when logging in",
+ "In order to avoid opening the profile to see a blank, but also click to change the user.It may consume a little bit of mobile data."
+ ],
useApiKeys: [
" Use API Keys",
"Enable to authorize APIs to fetch private informations. You can go to /settings/api to generate API keys. We will not use your keys for other purposes."
@@ -708,6 +712,10 @@ var lang_zh = {
" 开启提醒",
"选择是否发送包含 hack,比赛通知或者提交结果的提醒。"
],
+ loadMyInfoWhenLogin: [
+ " 登录时自动加载个人简介",
+ "免得打开个人简介时看到一片空白,还要点击更换用户。这可能会需要一点流量。"
+ ],
useApiKeys: [
" 使用 API Keys",
"开启后可以给 API 授权以加载私人内容。你可以前往 /settings/api 生成 API Keys。我们保证不会将其用于其他用途。"
diff --git a/js/profile.js b/js/profile.js
index 9b7f8d5..0c4d325 100644
--- a/js/profile.js
+++ b/js/profile.js
@@ -1013,12 +1013,15 @@ $(".profileSubmissionPageRight").click(function(){
profileRefreshSubmissionListPages();
});
-function infoLoadUsername(un){
- $(".infoContent > .contentRowInfo").css("left", "-920px");
- $("[for=infoContent]").click();
- for(var i=0; i<=2; i++)
- if(profileInfoLoaders[i] != null)
- profileInfoLoaders[i].abort();
+function infoLoadUsername(un,donot_jump=false){
+ if(!donot_jump)
+ {
+ $(".infoContent > .contentRowInfo").css("left", "-920px");
+ $("[for=infoContent]").click();
+ for(var i=0; i<=2; i++)
+ if(profileInfoLoaders[i] != null)
+ profileInfoLoaders[i].abort();
+ }
var hCode = (new Date()).getTime();
profileInfoCurrentAsked = un + '#' + hCode;
delete(profileInfoDatas[0]);
diff --git a/js/settings.js b/js/settings.js
index 733c250..2fc2b2a 100644
--- a/js/settings.js
+++ b/js/settings.js
@@ -454,6 +454,16 @@ var settingsFunctions = {
return settings.openNotification;
}
},
+ loadMyInfoWhenLogin: {
+ initial: function(){
+ return settings.loadMyInfoWhenLogin;
+ },
+ change: function(){
+ settings.loadMyInfoWhenLogin = !settings.loadMyInfoWhenLogin;
+ saveSettings();
+ return settings.loadMyInfoWhenLogin;
+ }
+ },
useApiKeys: {
initial: function(){
return settings.useApiKeys;
@@ -530,6 +540,7 @@ var currentDefaultSettings = {
statementFontSize: 16,
statementDefaultLanguage: 50,
openNotification: true,
+ loadMyInfoWhenLogin: false,
useApiKeys: false,
apiKey: "",
apiSecret: "",