@@ -50,21 +50,25 @@ def add(ctx, email, password):
5050 user = User (Email = email )
5151 click .echo (
5252 """
53- Open https://authorize.kobo.com/signin in a private/incognito window in your browser, wait till the page
54- loads (do not login!) then open the developer tools (use F12 in Firefox/Chrome), select the console tab,
55- and paste the following code there and then press Enter there in the browser.
53+ 1. Open https://authorize.kobo.com/signin in a private/incognito window in your browser.
54+ 2. wait till the page loads (do not login!)
55+ 3. open the developer tools (use F12 in Firefox/Chrome, or right-click and choose "inspect")
56+ 4. select the console tab,
57+ 5. copy-paste the following code to the console there and then press Enter.
5658
57- var newCaptchaDiv = document.createElement( "div" );
58- newCaptchaDiv.id = "new-grecaptcha-container";
59- document.getElementById( "grecaptcha-container" ).insertAdjacentElement( "afterend", newCaptchaDiv );
60- grecaptcha.render( newCaptchaDiv.id, {
61- sitekey: "6Le_Hc8ZAAAAAO6IMIG5zdDmANbljtXY4EHK0wzD",
62- callback: function( response ) { console.log( "Captcha response:" ); console.log( response ); }
63- } );
59+ var newCaptchaDiv = document.createElement("div");
60+ newCaptchaDiv.id = "new-hcaptcha-container";
61+ var siteKey = document.getElementById('hcaptcha-container').getAttribute('data-sitekey');
62+ document.body.replaceChildren(newCaptchaDiv);
63+ grecaptcha.render(newCaptchaDiv.id, {
64+ sitekey: siteKey,
65+ callback: function(r) {console.log("Captcha response:");console.log(r);}
66+ });
67+ console.log('Click the checkbox to get the code');
6468
6569 A captcha should show up below the Sign-in form. Once you solve the captcha its response will be written
6670 below the pasted code in the browser's console. Copy the response (the line below "Captcha response:")
67- and paste it here.
71+ and paste it here. It will be very long!
6872 """
6973 )
7074 captcha = input ('Captcha response: ' ).strip ()
0 commit comments