-
Notifications
You must be signed in to change notification settings - Fork 9
/
helper.js
106 lines (101 loc) · 3.33 KB
/
helper.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// ==UserScript==
// @name ioihw20.duck-ac.cn helper
// @version 0.2
// @author memset0
// @match https://ioihw20.duck-ac.cn/
// @match https://ioihw20.duck-ac.cn/*
// ==/UserScript==
(function() {
'use strict';
let dict = {
'ioi2021_00': '虞皓翔',
'ioi2021_01': '马耀华',
'ioi2021_02': '彭博',
'ioi2021_03': '屠学畅',
'ioi2021_04': '黄子宽',
'ioi2021_05': '彭思进',
'ioi2021_06': '胡昊',
'ioi2021_07': '邓明扬',
'ioi2021_08': '周欣',
'ioi2021_09': '陈雨昕',
'ioi2021_10': '叶卓睿',
'ioi2021_11': '魏衍芃',
'ioi2021_12': '林昊翰',
'ioi2021_13': '李白天',
'ioi2021_14': '代晨昕',
'ioi2021_15': '张隽恺',
'ioi2021_16': '徐哲安',
'ioi2021_17': '郭城志',
'ioi2021_18': '徐舟子',
'ioi2021_19': '周镇东',
'ioi2021_20': '张好风',
'ioi2021_21': '袁浩天',
'ioi2021_22': '魏辰轩',
'ioi2021_23': '邱天异',
'ioi2021_24': '张博为',
'ioi2021_25': '陈峻宇',
'ioi2021_26': '孙诺舟',
'ioi2021_27': '蒋凌宇',
'ioi2021_28': '潘佳奇',
'ioi2021_29': '钱易',
'ioi2021_30': '张庭川',
'ioi2021_31': '丁晓漫',
'ioi2021_32': '左骏驰',
'ioi2021_33': '万天航',
'ioi2021_34': '施良致',
'ioi2021_35': '刘宇豪',
'ioi2021_36': '李泽清',
'ioi2021_37': '林立',
'ioi2021_38': '戴傅聪',
'ioi2021_39': '王泽远',
'ioi2021_40': '陈胤戬',
'ioi2021_41': '陆宏',
'ioi2021_42': '吕秋实',
'ioi2021_43': '欧阳宇鹏',
'ioi2021_44': '张记僖',
'ioi2021_45': '吴孟周',
'ioi2021_46': '曹原',
'ioi2021_47': '陈亮舟',
'ioi2021_48': '卢宸昊',
'ioi2021_49': '曾庆之',
'ioi2021_50': '万成章',
'ioi2021_51': '张景行',
'ioi2021_52': '戴江齐',
'ioi2021_53': '郑路明',
'ioi2021_54': '周航锐',
'ioi2021_55': '曹越',
'ioi2021_56': '冯施源',
'ioi2021_57': '罗恺',
'ioi2021_58': '冷滟泽',
'ioi2021_59': '杨珖',
'ioi2021_60': '陶立宇',
'ioi2021_61': '陈于思',
'ioi2021_62': '王相文',
'ioi2021_63': '孙嘉伟',
'ioi2021_64': '孙若凡',
'ioi2021_65': '宣毅鸣',
'ioi2021_66': '谢濡键',
'ioi2021_67': '孙从博',
'ioi2021_68': '许庭强',
'ioi2021_69': '周子衡',
'ioi2021_70': '苏焜',
'ioi2021_71': '管晏如',
'ioi2021_72': '陈永志',
'ioi2021_73': '蔡欣然',
'ioi2021_74': '韩豫葳',
'ioi2021_75': '张湫阳',
'ioi2021_76': '丁其安',
'ioi2021_77': '翁伟捷',
'ioi2021_78': '吴家庆',
'ioi2021_79': '潘逸飞',
'ioi2021_80': '谢琳涵'
}
$('*').each(function() {
if(this.innerHTML.match(/^ioi2021_[0-9]+$/g)) {
let uid = this.innerHTML.match(/ioi2021_[0-9]+/g)[0]
let name = dict[uid]
console.log(uid, name)
this.innerHTML = '<span style="font-weight:normal">' + name + '</span>';
}
})
})();