- add handleMFA function for improved two-step verification
- implement direct login page handling with automatic sign-in
🐛 fix(claim): improve game claim process and duplicate prevention
- normalize claim URLs and deduplicate by URL
- fix various selectors for claim buttons and handle different languages
- prevent duplicate game claims by checking existing records
♻️ refactor(utils): improve code readability and maintainability
- extract normalizeClaimUrl function for URL handling
- restructure logic for claim and notification processes
🌐 i18n(claim): add support for game claim text in German
- handle German text for claim buttons and status checks
- change URL_CLAIM to point to new Luna claims home
- update selectors for sign-in and user verification
- improve handling of cookies acceptance
✨ feat(prime-gaming): enhance game claiming logic
- add support for new layout and game list detection
- implement flexible scrolling for loading all game cards
- refine logic for internal and external game claims
- improve store identification for external claims
♻️ refactor(prime-gaming): modularize game tab and list location
- extract functions for opening games tab and locating games list
- enhance code readability and maintainability
🐛 fix(prime-gaming): handle dynamic selectors for availability dates
- support multiple selectors for availability date detection
- improve error handling and logging for missing elements
This fixes the "game link" missing from notification when checking Epic Games Store and encountering a captcha, as per #259 should have been but instead wasn't. Issue was identified in #402 comment by "vttc08" (https://github.com/vogler/free-games-claimer/issues/402#issuecomment-2510818082)
I also added the missing notification for "Game Already in Library" for Epic Games Store, since I felt it is useful because it provides an easy way to know if the script is working or not during scheduled usage.
This also provided the opportunity to check if the game url link was handled properly outside "Discord": I have added a commented option where one could activate the "Already in Library" notification that will also provide the game url link for easy verification.