Skip to content Skip to sidebar Skip to footer

Safari Extension : Retrieve Full Html Code From A Page

i'm trying to create a safari extension and i'm stuck with something. I have my global.html on my extension and i've been searching the web for like 3hours on how to retrieve the f

Solution 1:

You can't get the HTML of a web page from your extension's global page. You have to use an injected script and then, if you want, you can pass the web page's HTML to your global page using safari.self.tab.dispatchMessage. See this chapter in Apple's documentation.


Post a Comment for "Safari Extension : Retrieve Full Html Code From A Page"