I am trying to create a browser extension following this tutorial and I want to create an extension which can access the actual document and ideally all the network (requests etc.).
But when I print out the documentURL
from document
print(document.documentURI)
inside index.html
I get the URI of the extension itself (like chrome-extension://enlpckinaieecgmjgamlcbicmjiahkkf/index.html
) and not for the webpage it is running on.
How to "access" the actual webpage?