Ralf Vogler
fd3f947223
debug output
2022-01-06 17:26:24 +01:00
Ralf Vogler
2b1f63582c
comment: need to update userAgent?
2022-01-02 19:54:29 +01:00
Ralf Vogler
e2c2f97114
check 'signed in' in loop
2022-01-02 19:52:03 +01:00
Ralf Vogler
0e19708503
typo
2022-01-02 19:50:49 +01:00
Ralf Vogler
e34a5fed60
use launchPersistentContext instead of storageState, works in headful now, support multiple games
2021-12-31 02:49:26 +01:00
Ralf Vogler
db1b61d797
old.stealth.js with Continue on mature content works?!
...
This is main.stealth.js from commit 64d0ba8ce7
plus name of the current game and Continue on mature content.
Why does this work and the current main.stealth.js gets the hcaptcha?
2021-12-29 20:12:29 +01:00
Ralf Vogler
975e1c05ed
wait for Continue 'Device not supported' or iframe
2021-12-29 20:08:52 +01:00
Ralf Vogler
93464ace82
click Continue if 'This game contains mature content' or 'Device not supported'
2021-12-29 18:27:37 +01:00
Ralf Vogler
96432884b3
stealth was not working due to removed new before require?
...
HEAD was showing hcaptcha while commit 64d0ba8ce7 claimed successfully without one.
Only relevant diff seems to be the removed `new` about which ts-check complained and which is also missing in
the example in https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth/evasions .
2021-12-28 21:32:58 +01:00
Ralf Vogler
81b04f6f2f
npm login -> npm run login
2021-12-28 20:59:53 +01:00
Ralf Vogler
0394dc3f94
exit on hcaptcha
2021-12-28 20:16:00 +01:00
Ralf Vogler
3facdd8665
only fix userAgent in headless mode
2021-12-28 19:47:47 +01:00
Ralf Vogler
a3a727a829
list all evasions of stealth plugin
2021-12-28 19:33:07 +01:00
Ralf Vogler
60dbf3f8a6
close dummyContext for userAgent
2021-12-28 19:20:54 +01:00
Ralf Vogler
1fc4ee761d
use PWDEBUG=1 to debug instead which also opens Playwright Inspector
2021-12-28 19:12:29 +01:00
Ralf Vogler
6de35e00ef
add --debug flag
2021-12-28 18:59:43 +01:00
Ralf Vogler
a8e8354bf7
check if logged in
2021-12-28 18:38:49 +01:00
Ralf Vogler
83a4b064bd
annotate context type, defaultTimeout 30s -> 10s
2021-12-28 18:26:27 +01:00
Ralf Vogler
567365e46c
pull out contextOptions
2021-12-28 18:15:31 +01:00
Ralf Vogler
42b2b384e3
mention which browser binaries are placed where
2021-12-28 18:13:20 +01:00
Ralf Vogler
481253a12f
pull out newStealthContext
2021-12-28 17:54:18 +01:00
Ralf Vogler
1cec85b9e9
rm main.captcha.js
2021-12-28 17:25:01 +01:00
Ralf Vogler
95413f7ab0
Update README.md
2021-12-28 17:15:35 +01:00
Ralf Vogler
b7b93f4c46
check if game already claimed
2021-12-28 01:47:38 +01:00
Ralf Vogler
64d0ba8ce7
main.stealth.js: puppeteer-extra-plugin-stealth enough to avoid hcaptcha, claim successful
2021-12-28 00:54:06 +01:00
Ralf Vogler
ba97a0e840
old playwright-extra has no :has-text?, now fails at page.frameLocator
2021-12-28 00:28:48 +01:00
Ralf Vogler
d44d84be3c
main.captcha.js: try beta of playwright-extra recaptcha, but fails on selectors
...
page.click: Evaluation failed: DOMException: Failed to execute 'querySelectorAll' on 'Document': 'button:has-text("Continue")' is not a valid selector.
2021-12-27 23:58:29 +01:00
Ralf Vogler
c1393e95be
add script npm run codegen
2021-12-27 23:53:43 +01:00
Ralf Vogler
e5ce7916ab
script from playwright codegen + iframe fix + notes
2021-12-27 21:33:18 +01:00