Skip to content

Instantly share code, notes, and snippets.

@TakamiChie
Created February 20, 2024 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TakamiChie/7c19d910fcd18ecd9f14575897c93609 to your computer and use it in GitHub Desktop.
Save TakamiChie/7c19d910fcd18ecd9f14575897c93609 to your computer and use it in GitHub Desktop.
ゲームポッドのゲームリストから自分の登録しているゲームリストを取得する
// ゲームポッドのマイページのゲーム一覧ページを表示して使う。
// 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