Comments (7)
For now, you can increase the height
here:
free-games-claimer/prime-gaming.js
Line 17 in 0381b73
You can only claim each game on one Twitch account and you usually select the same one?
What's the reason for having several linked?
Not sure if I have my Twitch still linked since they changed the client from Twitch to Amazon Gaming.
It's a bit hard to implement it remotely.
Maybe you can try the following:
- run
PWDEBUG=1 node epic-games
- record the screen/windows with https://recordscreen.io/ (or similar, haven't tried it)
- step through the debugger until the account selection
cmd + shift + C
(ctrl
on Win) to open DevTools and hover over thing to be clicked- in the Elements tab we now just need to find some way to identify it (text, CSS, other attributes)
from free-games-claimer.
@HandyHat01 I'll close this. Feel free to reopen with more details.
from free-games-claimer.
Hey @vogler, apologies for the delay in responding.
I ran npx cross-env PWDEBUG=1 node prime-gaming show
and then recorded the window, stepping through the debugger until the account selection screen appeared. Changing the viewport size seemed to stop the code from working, so instead I zoomed out when the pop-up opened.
2022-07-15.21-09-46.mp4
What's the reason for having several linked?
I linked multiple back when the client was the Twitch client in order to allow family members to claim games I already owned.
from free-games-claimer.
Thanks for the video. In your normal browser the popup appears vertically centered? Strange that it shows up so low on the screen here.
It says "In order to claim content, please select a primary Twitch account.' and that it can be changed later.
Does this pop up for each game or does it remember your selection for some time?
Seems like it's not standard form elements and that the accounts are lazy-loaded since at 1:21 there's only Select an account
.
You can try adding
await page.click('[data-a-target="select-twitch-account-modal__dropdown__header"]');
// TODO see what elements it loads and click one
await page.click('[data-a-target="select-twitch-account-modal__submit"]');
from free-games-claimer.
In your normal browser the popup appears vertically centered?
It does. The behaviour in the chromium window is odd.
Does this pop up for each game or does it remember your selection for some time?
Once selected, my selection is remembered in the browser until cookies are cleared/I'm logged out. The default Twitch account has to be selected again per browser though. I think this means once the user has selected once it can be ignored, just like logins.
I tried adding that code after
free-games-claimer/prime-gaming.js
Line 82 in 4ff208a
but it fails because the popup isn't in view. Even though the code claims to be scrolling into view, it doesn't.
from free-games-claimer.
I'll add an option to change the used browser profile, then you can keep a profile for each Twitch account (still have to select it initially though).
from free-games-claimer.
You can now use BROWSER_DIR=data/browser2 node prime-gaming.js
to claim for several accounts.
from free-games-claimer.
Related Issues (20)
- Highlight codes in the CLI output HOT 4
- Redeem free Twitch Prime sub HOT 2
- Stuck in hCaptcha "failed to challenge captcha, please try again later" loop with epic-games.js HOT 22
- Epic: Notifications only or include URL HOT 3
- Can't login to epic games HOT 13
- Unable to login to Epic: 'Incorrect response' for captcha HOT 29
- Unexpected token '||=' on node < 15 HOT 7
- Raspberry Pi keeps getting Captcha prompt'd HOT 1
- How to hide terminal on Windows? HOT 2
- how to get VNC or noVNC working on HomeAssistantOS? HOT 1
- How to get data from docker volume HOT 1
- [EPIC STORE] age confirmation with age dropdown HOT 14
- [Epic-Games] Parental PIN being asked twice HOT 5
- "Not a valid URL" for the epic store HOT 2
- v1.6 Docker Image HOT 3
- Incorrect response on Login in epic-store HOT 7
- Notification specified in .env file not working HOT 5
- Issue with automated log in
- epicgames captcha not working HOT 14
- apprise windows error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-games-claimer.