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

Commit

Permalink
Release 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftpsh committed Jun 18, 2020
1 parent 22b848c commit cf91bfa
Show file tree
Hide file tree
Showing 18 changed files with 60 additions and 477 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ solved.ac는 계속 커뮤니티 프로젝트로 남을 것입니다. 지금까
### 문제 난이도 표시
<img src="https://solved.ac/res/chrome/sc1.png" alt="개별 문제에 난이도 표시" width="512">

### 문제 난이도 의견 제출
<img src="https://solved.ac/res/chrome/sc2.png" alt="문제 난이도 의견 제출" width="512">
<img src="https://solved.ac/res/chrome/sc3.png" alt="문제 난이도 의견 제출" width="512">

## 소스로부터 설치

### Chrome
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "solved.ac",
"version": "1.2.4.1",
"description": "Problem difficulty informations for BOJ",
"version": "1.3",
"description": "우리 모두가 만들어가는 알고리즘 문제해결 학습의 이정표 🚩 Problem difficulty informations for BOJ",
"manifest_version": 2,
"author": "shiftpsh",
"icons": {
Expand Down
296 changes: 52 additions & 244 deletions src/content/main.js

Large diffs are not rendered by default.

17 changes: 5 additions & 12 deletions src/content/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,32 +43,25 @@ function levelCssClass(level) {
return prefix[Math.floor((level - 1) / 5)]
}

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

function kudekiLevelText(level) {
const roman = ['I', 'II', 'III', 'IV', 'V', 'VI', 'VII']
return "<span class=\"text-kudeki\">Ghudegy " + roman[level - 1] + "</span>"
}

function levelLabelUnlisted() {
return "<span class=\"level_hidden\">00"
+ "</span><img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/unlisted.svg") + "\">"
}

function levelLabel(level) {
function levelLabel(level, level_locked) {
if (level === null) return levelLabelUnlisted()
if (level == -1) level = 0
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") + "\">"
return "<span class=\"level_hidden\">" + ('0' + level).slice(-2)
+ "</span><img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/" + level + ".svg") + "\">"
}

function kudekiLevelLabel(level) {
return "<img class=\"level_badge small\" style=\"width: 1.1em;height: 1.4em;\" src=\"" + chrome.extension.getURL("svg/ka" + level + ".svg") + "\">"
}

function matchCurrentURL(regex) {
return regex.test(window.location.toString())
}
Expand Down
7 changes: 0 additions & 7 deletions src/injected/tagify.2.31.3.min.js

This file was deleted.

57 changes: 0 additions & 57 deletions src/injected/voting.js

This file was deleted.

59 changes: 0 additions & 59 deletions src/options/options_logged_info.html

This file was deleted.

27 changes: 0 additions & 27 deletions src/options/options_logged_info.js

This file was deleted.

21 changes: 0 additions & 21 deletions src/options/options_login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@
</head>
<body>
<div class="contents">
<h3 class="input_caption">BOJ 닉네임</h3>
<input type="text" name="user_id" id="user_id"><br>

<h3 class="input_caption">비밀번호</h3>
<input type="password" name="password" id="password"><br>

<br>
<div id="submit" class="button">로그인</div>

<p class="hr"></p>

<div class="option_item" data-key="hide_indicators">
<span class="option_caption">
난이도 표기 숨기기
Expand All @@ -30,14 +19,6 @@ <h3 class="input_caption">비밀번호</h3>
<span class="toggle_knob"></span>
</span>
</div>
<div class="option_item" data-key="hide_other_votes">
<span class="option_caption">
다른 사용자의 난이도 의견 숨기기
</span>
<span class="option_switch">
<span class="toggle_knob"></span>
</span>
</div>
<div class="option_item" data-key="show_tags_in_english">
<span class="option_caption">
문제 태그 영어로 보기
Expand All @@ -55,8 +36,6 @@ <h3 class="input_caption">비밀번호</h3>
</span>
</div>
</div>
<script src="/3rdparty/axios.0.19.0.min.js"></script>
<script src="/src/options/options_login.js"></script>
<script src="/src/options/options_commons.js"></script>
</body>
</html>
37 changes: 0 additions & 37 deletions src/options/options_login.js

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka1.svg

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka2.svg

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka3.svg

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka4.svg

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka5.svg

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka6.svg

This file was deleted.

1 change: 0 additions & 1 deletion svg/ka7.svg

This file was deleted.

1 change: 1 addition & 0 deletions svg/nr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cf91bfa

Please sign in to comment.