capsolver / capsolver-browser-extension

This browser extension supports recognition of the most popular CAPTCHAs, including reCAPTCHA v2, v3, reCAPTCHA v2 invisible, enterprise, hCaptcha, FunCaptcha, Geetest, AWS Waf Captcha, Amazon Captcha, Cloudflare v3(Turnstile) Captcha and regular picture captcha with numbers and letters(ImageToText).
https://www.capsolver.com/
48 stars 2 forks source link

Configuration file is not read apikey etc #9

Open Ahnafudin opened 7 months ago

Ahnafudin commented 7 months ago

I configured the config.js file on the latest version of CapSolver.Browser.Extension-chrome-v1.11.0 and it doesn't read the apikey on the chrome extension

However, I tried using the CapSolver.Browser.Extension-v.1.7.1 version in the config.json file and it read the apikey on the chrome extension

Maybe the file that connects config.js to the latest file has an error?

sergio-itru commented 6 months ago

solution is to add newline ='\n' when write to a file. like this with open(path, 'w', encoding='utf-8',newline='\n') as f:

ducklin404 commented 5 months ago

For anyone coming here later, there is already an issue opened here. Here is my workaround: https://github.com/capsolver/capsolver-browser-extension/issues/5#issuecomment-1963554168. It won't show the API key in the extension, but it will still solve the issue. Also, the API key to add in my-content-script.js can be find by this: manualSolving:!1,apiKey:"",appId:""