Last active
April 8, 2025 22:38
-
-
Save kelsin/2416b7f272d5bf1c114f6ab764ca7ac7 to your computer and use it in GitHub Desktop.
Revisions
-
kelsin revised this gist
Apr 8, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ javascript: (() => { fetch("/api/game") .then(response => response.json()) .then(response => response.games) .then(games => games.find(x => x.acting.includes(parseInt(playerId)))) .then(game => { if (game) { window.location.href = `/game/${game.id}`; -
kelsin renamed this gist
Apr 8, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kelsin renamed this gist
Apr 8, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kelsin revised this gist
Apr 8, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ javascript: (() => { if (!(window.location.href.match('https://18xx.games'))) { window.location.href = `https://18xx.games`; } const playerId = document.getElementById('nav').children[1].href.match(/profile\/(\d+)/)[1]; fetch("/api/game") .then(response => response.json()) .then(response => response.games) -
kelsin revised this gist
Apr 8, 2025 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ javascript: (() => { if (!(window.location.href.match('https://18xx.games'))) { window.location.href = `https://18xx.games`; } const playerId = $('#nav').children[1].href.match(/profile\/(\d+)/)[1]; fetch("/api/game") .then(response => response.json()) .then(response => response.games) -
kelsin created this gist
Apr 8, 2025 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ javascript: (() => { const playerId = 130; if (!(window.location.href.match('https://18xx.games'))) { window.location.href = `https://18xx.games`; } fetch("/api/game") .then(response => response.json()) .then(response => response.games) .then(games => games.find(x => x.acting.includes(playerId))) .then(game => { if (game) { window.location.href = `/game/${game.id}`; } else { window.location.href = `/`; } }); })();