I want to create an application that can read the values in the HTML and output them in the popup. I am confused, how can I get the HTML source of the website that the user is connected to?
Asked
Active
Viewed 57 times
1 Answers
0
Use a content script to insert a JavaScript file into the page (see here). You can use document.documentElement.innerHTML
to access the complete innerHTML of a page. (See also this answer to another question)

AdamRaichu
- 149
- 1
- 13
-
That gives me the error "Uncaught TypeError: Cannot read properties of undefined (reading 'innerHTML')" – Olivia Smith May 21 '22 at 22:59