brian-girko / image-reader

A powerful OCR extension with area selection tool and more
https://webextension.org/listing/ocr.html
77 stars 26 forks source link

Does not work, gives an error in the console #5

Open Serega007RU opened 1 year ago

Serega007RU commented 1 year ago

image

brian-girko commented 1 year ago

Does this happen on all websites?

Serega007RU commented 1 year ago

Here on this site https://yandex.ru/showcaptcha Don't pay attention to the 400 error, just try to capture some text, you will get this error in the console

Serega007RU commented 1 year ago

Excuse me, as it turns out, the error is affected not only by the site itself, but also by the TamperMonkey script Specifically this script https://greasyfork.org/ru/scripts/19993-ru-adlist-js-fixes As I understand it, this script overrides the shadowRoot function and the getElementById function is not available in it

One of the solutions that I see is to replace getElementById with querySelector.