Using a Chrome extension, I wish to extract information from a large number (20 to >100) of pages all linked to from a list in one page, and then present that compiled info on a new page created by the extension. The original page with the link list and its linked subpages are not owned by me and I cannot influence their settings in any way.
In a previous similar situation, I have managed to solve this by creating one <iframe>
element for each subpage and setting the styles for those iframes to {display:none;}
such that the extension's page doesn't get visually cluttered while it extracts the desired info. This time however, I get the error message Refused to display '<URL>' in a frame because it set 'X-Frame-Options' to 'deny'.
The iframe approach thus seems doomed here.
Therefore I tried the more brutal option to temporarily create a new tab for each subpage using window.open();
. It works, but it looks horrible, what with scores of tabs being generated instantly. Is there any operation I could make on the tabs corresponding to the css hiding of the iframes, such that the generated tabs are not shown? Because of security limitations, cURL won't work.
Subsequent edit: The stated question, about hiding tabs, I guess is answered in the negative; however, the problem that made me pose that question (the header restrictions against putting content in iframes) was solved by the answer to this post.