How to use 2captcha.com?

I need to use 2captcha.com on my webscraper project, on last page I get recaptcha puzzle with images. Their instructions from here https://2captcha.com/2captcha-api#solving_recaptchav2_new is saying to add js code to console but fail to work https://github.com/2captcha/2captcha-api-examples/blob/master/KeyCaptcha%20Examples/JavaScript/keycaptcha.js , anyone can help me ?

Here is the issue when it asks for recaptcha https://i.postimg.cc/qMvFF74w/Capture.jpg

You might need to install their plugin (if they have one) and set your timeout to accommodate it.

Your other option is to either use a userscript or depending on the site's loading style could use chrome's local overrides.

Local overrides would entail the website using atleast 1 static page you could use to inject the code, otherwise

1 - plugin (easiest)
2 - userscript w/ tampermonkey or similar (still pretty easy but not as easy as the plugin)