plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
Other
1.05k stars 77 forks source link

"Google in Place" translation mode doesn't work on some websites. #318

Closed gety9 closed 6 months ago

gety9 commented 6 months ago

Translation feature is supper useful. "Google in Place" is most reliable/conveniet mode and it works on 90% of websites i try to translate.

But it does not work on some pages, example: https://www.reddit.com/r/brasil/comments/192uegx/galera_estranha_na_minha_rua/ https://www.zhihu.com/question/538919973

Steps: 1, open the link 2, press translate icon 3, nothing happens

I was thinking it's impossible to translate these types of pages "in place" (without using "whole page" loading). But Brave browser managed to make it work, screenshots:

Reddit: Screenshot_20240110-041446

Zhihu: Screenshot_20240110-041543

If you switch to "Google Whole page" then it works, but i find "Google Whole Page" mode much less convenient then "Google In Place" cause you can't translate several pages/tabs and switch between them (any time you translate next page/tab previous translation is lost)

plateaukao commented 6 months ago

@gety9 it's because these websites prohibite javascript code injection. As for Brave browser, it's like Chrome browser, it has access to rendering engine, everything is under its control. As for EinkBro, it uses WebView element and constraint by the system.

gety9 commented 6 months ago

@plateaukao thank you for explanation. So we are not able to fix it, right? (it's fine, not big deal). Then i will close the issue?

plateaukao commented 6 months ago

No, I don't know how to fix it. Leet me close this issue. :(