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

Flag / Anthem modes #2

Open
LateNightIceCream opened this issue May 2, 2024 · 7 comments
Open

Flag / Anthem modes #2

LateNightIceCream opened this issue May 2, 2024 · 7 comments

Comments

@LateNightIceCream
Copy link

Hey, thank you for this little script :)

I was wondering if you have any idea regarding the implementation of a flag mode helper.
I assume there is no gm request going on with these modes as all it has to do is compare
the guessed country with the correct country.

I wouldn't even need the correct result during the round, only after it is over. Unfortunately,
the only HTML-based information about the correct country is in the screen after the round is done
and even then, only after you hover over the flag to show the tooltip with the country's name.

@dharmik2319
Copy link
Owner

I will surely look into it.

@dharmik2319
Copy link
Owner

Okay i got a major hint. the url of the svg files for flags is just the md5 hash of the country's iso code. i could just create a huge hashmap of all of them, or look into a better solution.

@dharmik2319
Copy link
Owner

some experimental work has landed in the testing branch, which you can check out

@LateNightIceCream
Copy link
Author

Okay i got a major hint. the url of the svg files for flags is just the md5 hash of the country's iso code. i could just create a huge hashmap of all of them, or look into a better solution.

Lol this is why I love this kind of reverse engineering :D I will check it out!

@dharmik2319
Copy link
Owner

yep. one of the major reasons why i made this

@dharmik2319
Copy link
Owner

wait, i didnt realize there was an anthem mode. i see it in the source code as well. how is it even accessed?

@dharmik2319
Copy link
Owner

ok, the next major problem we are facing is that we dont know what function is being used to call the url for the image, so that we can hijack it. any help will be appreciated.

@dharmik2319 dharmik2319 pinned this issue May 26, 2024
@dharmik2319 dharmik2319 unpinned this issue Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants