Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit cf91bfa

Browse files
committed
Release 1.3
1 parent 22b848c commit cf91bfa

18 files changed

+60
-477
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ solved.ac는 계속 커뮤니티 프로젝트로 남을 것입니다. 지금까
2525
### 문제 난이도 표시
2626
<img src="https://solved.ac/res/chrome/sc1.png" alt="개별 문제에 난이도 표시" width="512">
2727

28-
### 문제 난이도 의견 제출
29-
<img src="https://solved.ac/res/chrome/sc2.png" alt="문제 난이도 의견 제출" width="512">
30-
<img src="https://solved.ac/res/chrome/sc3.png" alt="문제 난이도 의견 제출" width="512">
31-
3228
## 소스로부터 설치
3329

3430
### Chrome

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "solved.ac",
3-
"version": "1.2.4.1",
4-
"description": "Problem difficulty informations for BOJ",
3+
"version": "1.3",
4+
"description": "우리 모두가 만들어가는 알고리즘 문제해결 학습의 이정표 🚩 Problem difficulty informations for BOJ",
55
"manifest_version": 2,
66
"author": "shiftpsh",
77
"icons": {

src/content/main.js

Lines changed: 52 additions & 244 deletions
Large diffs are not rendered by default.

src/content/utils.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,25 @@ function levelCssClass(level) {
4343
return prefix[Math.floor((level - 1) / 5)]
4444
}
4545

46-
function levelText(level) {
47-
if (level == 0) return "<span>Unranked</span>"
46+
function levelText(level, level_locked) {
47+
if (!level && level_locked) return "<span>Not ratable</span>"
48+
if (!level) return "<span>Unrated</span>"
4849
return "<span class=\"text-" + levelCssClass(level) + "\">" + levelName(level) + "</span>"
4950
}
5051

51-
function kudekiLevelText(level) {
52-
const roman = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII']
53-
return "<span class=\"text-kudeki\">Ghudegy " + roman[level - 1] + "</span>"
54-
}
55-
5652
function levelLabelUnlisted() {
5753
return "<span class=\"level_hidden\">00"
5854
+ "</span><img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/unlisted.svg") + "\">"
5955
}
6056

61-
function levelLabel(level) {
57+
function levelLabel(level, level_locked) {
6258
if (level === null) return levelLabelUnlisted()
6359
if (level == -1) level = 0
60+
if (!level && level_locked) return "<span class=\"level_hidden\">00</span>" + "<img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/nr.svg") + "\">"
6461
return "<span class=\"level_hidden\">" + ('0' + level).slice(-2)
6562
+ "</span><img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/" + level + ".svg") + "\">"
6663
}
6764

68-
function kudekiLevelLabel(level) {
69-
return "<img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/ka" + level + ".svg") + "\">"
70-
}
71-
7265
function matchCurrentURL(regex) {
7366
return regex.test(window.location.toString())
7467
}

src/injected/tagify.2.31.3.min.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/injected/voting.js

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/options/options_logged_info.html

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/options/options_logged_info.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/options/options_login.html

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@
1111
</head>
1212
<body>
1313
<div class="contents">
14-
<h3 class="input_caption">BOJ 닉네임</h3>
15-
<input type="text" name="user_id" id="user_id"><br>
16-
17-
<h3 class="input_caption">비밀번호</h3>
18-
<input type="password" name="password" id="password"><br>
19-
20-
<br>
21-
<div id="submit" class="button">로그인</div>
22-
23-
<p class="hr"></p>
24-
2514
<div class="option_item" data-key="hide_indicators">
2615
<span class="option_caption">
2716
난이도 표기 숨기기
@@ -30,14 +19,6 @@ <h3 class="input_caption">비밀번호</h3>
3019
<span class="toggle_knob"></span>
3120
</span>
3221
</div>
33-
<div class="option_item" data-key="hide_other_votes">
34-
<span class="option_caption">
35-
다른 사용자의 난이도 의견 숨기기
36-
</span>
37-
<span class="option_switch">
38-
<span class="toggle_knob"></span>
39-
</span>
40-
</div>
4122
<div class="option_item" data-key="show_tags_in_english">
4223
<span class="option_caption">
4324
문제 태그 영어로 보기
@@ -55,8 +36,6 @@ <h3 class="input_caption">비밀번호</h3>
5536
</span>
5637
</div>
5738
</div>
58-
<script src="/3rdparty/axios.0.19.0.min.js"></script>
59-
<script src="/src/options/options_login.js"></script>
6039
<script src="/src/options/options_commons.js"></script>
6140
</body>
6241
</html>

src/options/options_login.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)