Created
February 20, 2024 05:14
-
-
Save TakamiChie/7c19d910fcd18ecd9f14575897c93609 to your computer and use it in GitHub Desktop.
ゲームポッドのゲームリストから自分の登録しているゲームリストを取得する
This file contains 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
// ゲームポッドのマイページのゲーム一覧ページを表示して使う。 | |
// https://www.gamepod.jp/mypage | |
// 開発者モードのコンソールに次のソースコードをペーストする | |
// リストにチェックリスト付きのゲームタイトル一覧が出てくるのでコピーしてNotionなどで対応すると良い | |
let text = ""; | |
Array.from(document.querySelectorAll("li.game")).forEach((e) => { | |
text += `- [ ] ${e.querySelector(".game-title div:nth-child(1)").textContent.replace(/[\n\s]/g, "")}`; | |
text += `(${e.querySelector(".game-title div:nth-child(2)").textContent.replace(/[\n\s]/g, "")})`; | |
text += `[リンク](${e.querySelector("a").href})`; | |
text += "\n"; | |
}); | |
console.log(text.split("\n").sort().join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment