Created
March 8, 2025 11:59
-
-
Save hapo31/46abc3e7eebd29eaa408f6977c8345a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Array.from(document.querySelectorAll("tr:has(td p)")).map(cell) | |
| function cell(el) { | |
| const row = el.querySelectorAll("td"); | |
| const [arts, ...cells] = row; | |
| const name = arts.querySelector("span").textContent; | |
| const commands = Array.from(arts.querySelectorAll("p img")).map(el => el.src.split("/").pop()) | |
| return { | |
| name, | |
| commands, | |
| 持続: cells[1].textContent, | |
| 硬直: cells[2].textContent, | |
| 硬直差_ヒット: cells[3].textContent, | |
| 硬直差_ガード: cells[4].textContent, | |
| キャンセル: cells[5].textContent, | |
| ダメージ: cells[6].textContent, | |
| コンボ補正値: cells[7].textContent, | |
| Dゲージ増加_ヒット: cells[8].textContent, | |
| Dゲージ減少_ガード: cells[9].textContent, | |
| Dゲージ減少_パニッシュカウンター: cells[10].textContent, | |
| SAゲージ増加: cells[11].textContent, | |
| 属性: cells[12].textContent, | |
| 備考: cells[13].textContent, | |
| } | |
| } | |
| // cols = Array.from(document.querySelectorAll("tr th")).flatMap(colSelect) | |
| function colSelect(el) { | |
| const ul = el.querySelector("ul"); | |
| if (ul != null) { | |
| const li = ul.querySelectorAll("li"); | |
| return Array.from(li).map(e => e.textContent); | |
| } | |
| const tx = el.querySelector("label,p"); | |
| return [tx?.textContent ?? el.textContent ?? ""]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment