Commit graph

100 commits

Author SHA1 Message Date
Ralf Vogler
548ba67e10 indent logging per game 2022-09-30 17:13:31 +02:00
Ralf Vogler
777b00b3fb log signed in user 2022-09-30 17:02:41 +02:00
Ralf Vogler
f949e8effd rm stealth dup. comments 2022-09-30 14:34:56 +02:00
Ralf Vogler
edb90fe9f8 epig-games: goto href instead of clicking games, fixes #25, fixes #28 2022-09-29 18:13:35 +02:00
Ralf Vogler
2f17bcf4bf epic-games cleanup and make more readable 2022-09-29 17:00:24 +02:00
Ralf Vogler
30451b5f41 oops, remove debug contine 2022-09-29 16:29:06 +02:00
Ralf Vogler
69d771b38c log urlSlug, #25 2022-09-29 16:28:06 +02:00
Ralf Vogler
e5ae4b6316 epic-games: only save screenshot if none exists for game 2022-09-29 16:26:24 +02:00
Ralf Vogler
bf647936eb vscode format dode 2022-09-26 20:08:52 +02:00
Ralf Vogler
1dc3b3db6a resort to 3s timeout for now for #25 2022-09-22 16:25:21 +02:00
Ralf Vogler
2791112fd6 sanitizeFilename -> filenamify, use for datetime 2022-09-16 15:34:28 +02:00
Ralf Vogler
c519ce0ce5 use .nth() instead of :nth-match 2022-09-16 15:26:05 +02:00
Ralf Vogler
cbe789b08d temporarily fix #25 by waitUntil networkidle
should wait for some element/attribute/event instead
2022-09-15 16:40:18 +02:00
Ralf Vogler
f109782a7a epic-games: chromium args: --hide-crash-restore-bubble, no --enable-automation to hide info bar 2022-09-11 22:11:08 +02:00
Ralf Vogler
af374551b7 recordVideo will record a .webm video for each page navigated 2022-09-11 22:10:06 +02:00
Ralf Vogler
08da100646 no : in filenames on Windows! closes #21, ref #20 2022-08-28 20:28:56 +01:00
Ralf Vogler
90af31a210 epic-games: don't click on 'play free now' button, but only 'free now' 2022-08-18 16:57:25 +02:00
Ralf Vogler
cf8746dc6c epic-games: fix title sometimes being duplicated due to responsive alternative 2022-07-28 16:54:02 +02:00
Ralf Vogler
f770ef5580 include URL to game in .json 2022-07-14 17:15:51 +02:00
Ralf Vogler
4868ba66f9 epic-games: title_url as filename, GET-button as loading barrier 2022-07-14 17:09:41 +02:00
Ralf Vogler
2ae513f6c0 epic-games: save data/screenshots/epic-games/title.png for each game, not fullPage 2022-07-14 16:49:03 +02:00
Ralf Vogler
0d847c479a use lowdb for data/epic-games.json 2022-07-14 16:48:38 +02:00
Ralf Vogler
584c80e939 screenshots/{prime-gaming/{internal,external}, epic-games} 2022-06-30 16:43:22 +02:00
Ralf Vogler
6c190c1f60 epic-games changed OfferCard selector -> just click a with the right text 2022-06-16 16:18:45 +02:00
Ralf Vogler
63d8889537 clickIfExists did not work for cookie banner -> just click and catch timeout instead of await 2022-06-16 16:17:31 +02:00
Trung Le
43c2df7e4a feat: improve Get button locator 2022-05-27 11:17:32 +07:00
Trung Le
335c4b0292 fix: unable to claim collection 2022-05-27 10:57:18 +07:00
XEGARE
8288f3dce9 Fix wait "FreeOfferCard" 2022-05-19 21:24:44 +05:00
Ralf Vogler
cb9aed2871 mention noVNC URL in login message 2022-05-11 14:01:44 +02:00
Ralf Vogler
a0de165e6f :has-text("Continue") -> button:has-text("Continue") 2022-05-06 00:07:48 +02:00
Ralf Vogler
59450ed05c mv userDataDir data/browser; mv screenshots data/ 2022-05-05 23:49:55 +02:00
Ralf Vogler
bba71efbc9 fix type in Promise.any 2022-05-05 23:21:14 +02:00
Ralf Vogler
f1dd867d39 missing ; 2022-04-30 21:53:03 +02:00
Ralf Vogler
21c13ad4d6 fix #14
`count` and `click` should use the same (button) locator
2022-04-21 20:37:10 +02:00
Trung Le
7971be297c feat: use novnc, fix Thank you for buying timeout 2022-04-09 14:50:42 +07:00
Trung Le
dbf4804dc7 fix: reduce size, fix signin redirect
* correct freegames url
* skip downloading browsers in docker
* remove fluxbox
* remove stdout for vnc & xvfb
2022-04-01 01:47:48 +07:00
Trung Le
a8c578bd93 feat: dockerize, fix sign in loop 2022-03-31 03:06:01 +07:00
Ralf Vogler
3b3289dddf upgrade to ES6 modules and top-level await, add jsconfig.json with es2022
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
https://code.visualstudio.com/docs/languages/jsconfig
2022-02-24 18:27:25 +01:00
Ralf Vogler
9bb548dc3e pull out stealth into util 2022-02-24 17:32:32 +01:00
Ralf Vogler
bd61963fc2 stealth evasions don't need new, ts complained about type 2022-02-24 17:27:42 +01:00
Ralf Vogler
fe7e3d189d don't log 'Device not supported' 2022-02-24 16:52:50 +01:00
Ralf Vogler
4fc7d65b9b pull up try, #7 2022-02-24 16:46:15 +01:00
Ralf Vogler
59a5f529d8 'I Agree' button only for EU accounts, closes #7 2022-02-17 17:06:05 +01:00
Ralf Vogler
d1aad10fac fix locale to en-US
epic-games otherwise uses OS locale for text:
https://github.com/vogler/free-games-claimer/pull/7
2022-02-12 19:54:09 +01:00
Ralf Vogler
9ac269a396 try Chrome flags --disable-session-crashed-bubble, --restore-last-session
https://superuser.com/questions/1343290/disable-chrome-session-restore-popup
2022-02-02 13:07:24 +01:00
Ralf Vogler
3766754a5f epic-games: catch timeout and save screenshot of hcaptcha 2022-02-02 12:53:12 +01:00
XEGARE
6b55c2b9d4 Fix path for macOS 2022-01-31 23:11:36 +05:00
XEGARE
a231476d3a Changing the path to absolute 2022-01-26 12:05:01 +05:00
Ralf Vogler
35423d6eef epic-games: don't pause after claimed successfully 2022-01-20 20:17:17 +01:00
Ralf Vogler
38b074384d rename repo epicgames-claimer -> free-games-claimer, cleanup, comments 2022-01-20 20:13:58 +01:00
Renamed from main.stealth.js (Browse further)