A
A
Astral1004982020-09-07 13:45:44
JavaScript
Astral100498, 2020-09-07 13:45:44

How to get all the text from the page, and then replace it with a new one?

Good afternoon. I'm trying to implement in my browser extension, page translation (like Google or Yandex). But I can’t figure out how to implement the process of taking text from a page and replacing it with another one. I can translate and then replace selected text on a page. But to translate the entire page, I don't know how to do it. I would be grateful for any hints and examples.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-09-07
@Seasle

treewalker .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question