diff --git a/README.md b/README.md index 7b3ccf9..e25c011 100644 --- a/README.md +++ b/README.md @@ -95,15 +95,12 @@
YEAHx4 - π§ & - π» + | YEAHx4 |
- Yunseok - π + | Yunseok |
- rdxxer + rdxxer |
diff --git a/manifest.json b/manifest.json index 873e361..e5a9d55 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "λ°±μ€μ½λ", "description": "Automatically send BOJ to your discord server", "homepage_url": "https://github.com/BaekjoonCord/BJCORD-extension", - "version": "1.4.1", + "version": "1.5.0", "author": "karpitony, YEAHx4", "action": { "default_icon": "assets/thumbnail.png", diff --git a/scripts/content/boj.js b/scripts/content/boj.js index 0885e0e..c8680bf 100644 --- a/scripts/content/boj.js +++ b/scripts/content/boj.js @@ -40,7 +40,11 @@ function watch() { const { username, resultCategory } = data; if (username == getHandle()) { - if (resultCategory == "judging") { + if ( + resultCategory === "judging" || + resultCategory === "wait" || + resultCategory === "compile" + ) { if (!isJudging) { isJudging = true; judgeStartTime = new Date().getTime(); @@ -112,8 +116,26 @@ function watch() { const endTime = new Date().getTime(); log("Took " + (endTime - startTime) + "ms"); + + /** λ©μμ§ μ μ‘ κ²°κ³Όμ λ°λΌ μ²΄ν¬ λλ X νμ + * λͺ¨λ μΉν μ΄ μ μ μλλλ©΄ μ²΄ν¬ νμ + * μΉν μ΄ μ무κ²λ λ±λ‘μ΄ μλ κ²½μ°μλ Xλ‘ νμ + */ + const statusCell = document.querySelector( + "span.result-text.result-ac" + ); + + if (statusCell) { + if (success > 0 && failed === 0) { + statusCell.innerHTML += " βοΈ"; + } else { + if (failed !== 0) statusCell.innerHTML += " β"; + } + } else { + logErr("Status cell not found. Cannot append status."); + } })(); } } - }, 1000); + }, 100); } |