Skip to content

Instantly share code, notes, and snippets.

@yuarasino
Created October 20, 2022 03:17
Show Gist options
  • Save yuarasino/1ca946a902f5c49df326538f32937883 to your computer and use it in GitHub Desktop.
Save yuarasino/1ca946a902f5c49df326538f32937883 to your computer and use it in GitHub Desktop.
モータルくんでミスったとこだけ表示するやつ。モータルくんのページでF12押してコンソールを開いて、↑のコードを張り付けてEnter。
(function showMissOnly() {
const turnList = document.querySelectorAll("details.collapse")
for (const turn of turnList) {
if (turn.querySelector(".turn-info")) {
const turnInfo = turn.querySelector(".turn-info")
if (turnInfo) {
if (turnInfo.querySelector(".order-loss")) {
turn.setAttribute("open", "");
}
else {
turn.removeAttribute("open");
}
}
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment