If you need to solve a captcha, then you use the module. If you don't need to solve a captcha, then you don't use it)
There is no specific answer to your question, it all depends on the site you work with.
@yourfriendkarol
This code contains an event handler. It should be added to the page before it is downloaded (preferably). Use "Browser -> execute every time the page loads". From "Tools -> execute the code" access to the root object "windows" is not. From this error there is - no "windows.document"