Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support all game modes for nextPlayerOnTakeOutStuck #39

Open
simbesh opened this issue Aug 1, 2024 · 2 comments
Open

Support all game modes for nextPlayerOnTakeOutStuck #39

simbesh opened this issue Aug 1, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@simbesh
Copy link

simbesh commented Aug 1, 2024

Hello, thanks for this great tool, is there any reason why only isX01() || isCricket() are the only supported games for nextPlayerOnTakeOutStuck?

would like to have it for all game modes, thanks.

@creazy231
Copy link
Owner

Nope, the only reason is that these modes are the most popular ones and therefore we started to implement all features X01 first. Once I have some time I'll look into this 🙏

@creazy231 creazy231 added the enhancement New feature or request label Aug 1, 2024
@simbesh
Copy link
Author

simbesh commented Aug 1, 2024

I updated isValidGameMode() and built it locally to get it going, (although not sure if this will break anything else). you might find the selectors useful at least

export const isBermuda = () => document.getElementById("ad-ext-game-variant")?.textContent === "Bermuda";
export const isShanghai = () => document.getElementById("ad-ext-game-variant")?.textContent === "Shanghai";
export const isGotcha = () => document.getElementById("ad-ext-game-variant")?.textContent === "Gotcha";
export const isAroundTheClock = () => document.getElementById("ad-ext-game-variant")?.textContent === "ATC";
export const isRoundTheWorld = () => document.getElementById("ad-ext-game-variant")?.textContent === "Round the World";
export const isRandomCheckout = () => document.getElementById("ad-ext-game-variant")?.textContent === "Random Checkout";
export const isCountUp = () => document.getElementById("ad-ext-game-variant")?.textContent === "Count Up";
export const isSegmentTraining = () => document.getElementById("ad-ext-game-variant")?.textContent === "Segment Training";

export const isValidGameMode = () => isX01() || isCricket() || isBermuda() || isShanghai() || isGotcha() || isAroundTheClock() || isRoundTheWorld() || isRandomCheckout() || isCountUp() || isSegmentTraining();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants