Ralf Vogler
9df80fa6d8
eg: wait 2s before 'Place Order', fix #84 for everyone?
2023-03-10 09:16:54 +01:00
Ralf Vogler
0cfb9d29aa
eg: Accept End User License Agreement (only needed once per account)
2023-03-09 16:21:19 +01:00
Ralf Vogler
cbdea1b5d0
add username to notification of claimed games, closes #88
2023-03-06 21:15:42 +01:00
Ralf Vogler
e45c3a5dca
eg: no captcha -> no special timeout for solving one
2023-03-06 21:08:57 +01:00
Ralf Vogler
a8fa80cd05
eg: fix #84 like #75 with click delay >0ms
2023-03-06 21:08:24 +01:00
Ralf Vogler
944cca6715
eg: add click delay, fixes #75
...
Playwright triggered the click such that the purchase frame opened, but
did not resolve the promise. Had to move mouse into the browser for it
to continue. Adding a click delay of 1ms also worked (default is no
delay between mouse down and up). Went for 11ms. A typical click is
probably 100-200ms.
2023-02-24 20:56:25 +01:00
Ralf Vogler
73a7cffd47
await notify before process.exit, #69
2023-02-24 00:08:35 +01:00
Ralf Vogler
38c5402df0
exitCode should be 130 instead of 1 on SIGINT
...
https://unix.stackexchange.com/questions/386836/why-is-doing-an-exit-130-is-not-the-same-as-dying-of-sigint
2023-02-22 10:26:32 +01:00
Ralf Vogler
18c27ba881
use playwright-firefox such that npm install does not download other browsers
2023-02-22 00:49:58 +01:00
Ralf Vogler
b0f662479d
eg: exit like others if headless and no login data given
2023-02-22 00:16:19 +01:00
Ralf Vogler
66694d65e5
SIGINT handler to not notify about error on Ctrl-C
2023-02-22 00:15:03 +01:00
Ralf Vogler
8c2ac3b6d0
add LOGIN_TIMEOUT (180s) for PW, but prompts still wait forever
2023-02-21 21:21:55 +01:00
Ralf Vogler
704c4b01e1
set process.exitCode = 1 on error; don't want to rethrow
2023-02-21 21:00:26 +01:00
Ralf Vogler
e2b07dc1e6
BROWSER_DIR for multiple profiles or testing, SCREENSHOTS_DIR, closes #12
2023-02-16 16:25:46 +01:00
Ralf Vogler
ec2d31ed79
remove unused NopeCHA extension
2023-02-15 10:06:52 +01:00
Ralf Vogler
c65f153090
remove not needed await
2023-02-15 10:06:52 +01:00
Ralf Vogler
c058bafcf3
remove migrateDb
...
comment: remove this after some time since it will run fine without and people can still use this commit to adjust their data/epic-games.json and data/prime-gaming.json
2023-02-15 10:06:52 +01:00
Ralf Vogler
dff712d998
skip prompt for password if email is missing
2023-02-09 16:28:27 +01:00
Ralf Vogler
b9e9abe546
page.waitForNavigation -> page.waitForURL
2023-02-04 21:37:04 +01:00
Ralf Vogler
eb17a49628
extract prompt into util.js
2023-02-03 16:03:01 +01:00
Ralf Vogler
21a4e06209
gog: check for reCAPTCHA on login; better info for eg
2023-01-29 20:27:05 +01:00
Ralf Vogler
0393a3998b
info about escaping prompts only if needed
2023-01-29 19:52:18 +01:00
Ralf Vogler
c5b0065a50
TypeError: String includes not contains, #53 ; only first line of error
2023-01-29 19:28:02 +01:00
Ralf Vogler
98dff72888
eg: notify: set status existed correctly, fixes #50
2023-01-28 10:26:27 +01:00
Ralf Vogler
72a61458fc
notify: escapeHtml for titles
2023-01-25 20:56:35 +01:00
Ralf Vogler
9355ff3e01
notify: forgot to join list, gets rid of commas
2023-01-25 19:35:18 +01:00
Ralf Vogler
13e6f05cd0
pg: notify about games and login
2023-01-25 18:54:23 +01:00
Ralf Vogler
109423925e
eg: notify about games and login
2023-01-25 17:50:26 +01:00
Ralf Vogler
cecc54082f
eg: title now in span instead of div
2023-01-25 17:45:50 +01:00
Ralf Vogler
c09da8eec6
eg: simpler check if game is unavailable in region
2023-01-19 12:29:20 +01:00
Ralf Vogler
4055ec44c7
fix for #46 : "This product is currently unavailable in your region"
2023-01-19 01:26:27 +01:00
Ralf Vogler
351670f426
eg: TODO locator for 2FA text (email or app?)
2023-01-19 00:57:56 +01:00
Ralf Vogler
1a3d90f795
add otplib to generate OTP from key for eg, pg; gog only has mail
2023-01-10 00:06:25 +01:00
Ralf Vogler
2168c40aa5
centralize env vars in config.js
2023-01-09 10:47:19 +01:00
Ralf Vogler
792b4b3915
options: store-specific logins, drop SCREEN_
2023-01-07 13:55:31 +01:00
Ralf Vogler
09c3e57a8a
use SHOW for pg and eg, headless by default for both, but show inside Docker
2023-01-07 13:47:08 +01:00
Ralf Vogler
cc183a6303
eg: set cookie accept time to 5 days ago instead of a static value
2023-01-07 12:40:25 +01:00
Ralf Vogler
cf9c31e544
eg: cookie comment
2023-01-07 12:32:55 +01:00
Ralf Vogler
67ccf032e5
eg: catch pending optional promise to avoid time out
2022-12-29 15:38:17 +01:00
Ralf Vogler
db7cf88c1b
eg: don't await MFA
2022-12-29 14:55:04 +01:00
Ralf Vogler
1c38f730ab
docker: run both epic-games and prime-gaming by default
2022-12-24 15:20:45 +01:00
Ralf Vogler
d616de2096
eg: use firefox instead of chromium, fixes #34
2022-12-17 00:23:22 +01:00
Ralf Vogler
e1cd3117b6
fix #33
2022-11-12 13:43:27 +01:00
Ralf Vogler
569e690d9e
eg: log indent 'This game contains mature content'
2022-10-27 14:09:43 +02:00
Ralf Vogler
aae396fa80
eg: more info around login
2022-10-21 17:21:23 +02:00
Ralf Vogler
746d226cf6
eg: fix page.type: text: expected string, got number
2022-10-21 00:47:36 +02:00
Ralf Vogler
2de5b8e4ab
eg: info depending on NOVNC_PORT
2022-10-20 21:21:48 +02:00
Ralf Vogler
fbc33ffcaf
same resolution for docker as for browser
2022-10-20 21:20:15 +02:00
Ralf Vogler
f450d29bc3
eg: login from CLI, prompts for email, password, OTP
2022-10-20 18:07:34 +02:00
Ralf Vogler
ac0ecc0f7a
eg: ignoring --enable-automation now shows info bar about unsupported --no-sandbox
2022-10-20 16:43:41 +02:00