File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
"manifest_version" : 2 ,
3
3
"name" : " leetcode cheatsheet" ,
4
4
"description" : " 刷题小助手,made by 力扣加加" ,
5
- "version" : " 0.9.1 " ,
5
+ "version" : " 0.9.2 " ,
6
6
"browser_action" : {
7
7
"default_popup" : " index.html" ,
8
8
"default_title" : " 力扣加加"
Original file line number Diff line number Diff line change @@ -34,10 +34,18 @@ const { TabPane } = Tabs;
34
34
35
35
const dataSource = Object . values ( problems ) ;
36
36
const chrome = window . chrome ;
37
+
37
38
// function inLeetCodeWebsite(url) {
38
39
// return [LEETCODE_CN_URL, LEETCODE_URL].some((u) => url.includes(u));
39
40
// }
40
41
42
+ // 根据 Github 用户名获取用户信息
43
+ function getUserInfo ( username ) {
44
+ return fetch ( `https://api.github.com/users/${ username } ` )
45
+ . then ( ( res ) => res . json ( ) )
46
+ . then ( ( res ) => res ) ;
47
+ }
48
+
41
49
const columns = [
42
50
{
43
51
title : "题目" ,
You can’t perform that action at this time.
0 commit comments