Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to run Chrome Extension
#2
Hi,

Thank you for your question.

At this moment, WebView2 itself does not have extension support.
See also:
https://github.com/MicrosoftEdge/WebView.../issues/98
and
https://github.com/MicrosoftEdge/WebView...issues/191

From what I understand, Microsoft is working on adding support for extension support, but there does not appear to be a time line.
As WebView2 itself does not yet have extension support, there's not much for AntView to expose in that regard.

But you are looking for a feature that might be possible to get working without using an actual extension as google has a web only version by visiting their translate website.
So I figured to go to the https://translate.google.com website. Entered the url https://antview.dev and suggested to the translate site to translate from English to Dutch.

This then returns the following URL to use:
https://antview-dev.translate.goog/?_x_t...r_pto=wapp

I then opened the URL from above in AntView and looked what the output is of the RequestCurrentText method in the Document interface. The output of that was translated to Dutch for about half the page. The rest showed up in English.
So it looks like that google is translating on the spot, if it isn't rendered.. it isn't getting translated.
Paging down through the page and calling the RequestCurrentText again did deliver better results.

But as you can see.. it still isn't perfect as some html seeped through as well.
This would have to be addressed either at javascript level or when post processing the content.

FWIW, you could create your own version of RequestCurrentText by running the following javascript:

Code:
document.body.textContent;


followed by passing the result of that tidbit of javascript through DecodeJsonObjectString

Hope this helps,
--
Wil
Reply


Messages In This Thread
How to run Chrome Extension - by hys999 - 2023-07-12, 13:03:26
RE: How to run Chrome Extension - by wila - 2023-07-12, 15:50:48
RE: How to run Chrome Extension - by hys999 - 2023-07-12, 16:07:33
RE: How to run Chrome Extension - by hys999 - 2023-07-14, 05:25:43
RE: How to run Chrome Extension - by wila - 2023-07-14, 11:00:59
RE: How to run Chrome Extension - by hys999 - 2023-07-14, 16:49:37
RE: How to run Chrome Extension - by wila - 2023-07-14, 18:26:12
RE: How to run Chrome Extension - by hys999 - 2023-07-17, 05:39:25
RE: How to run Chrome Extension - by wila - 2023-07-17, 09:56:31

Forum Jump:


Users browsing this thread: 1 Guest(s)