I am writing a chrome extension that downloads a page for user, parses contents and shows useful bits to user.
I first tried it using $.get(). But some of the downloaded pages (for e.g.
gmail.com), did not send any content back. It showed a message that "your browser does not have javascript enabled".
Then I tried to download the page using iframe. But even that did not work.
1. If I use iframes in content-scripts, some sites do not allow iframes at all in their pages (e.g. stackoverflow).
2. If I use iframes in background page, the page is not displayed for sites using X-frame-options (e.g.
google.com).
So how can I download web pages in the background and parse their contents?