gmtfPDF icon indicating copy to clipboard operation
gmtfPDF copied to clipboard

Navigate past Wiley's iframe

Open lmmx opened this issue 10 years ago • 0 comments

A simpler solution than using chrome.tabs API (#4) but it works - Wiley PDFs no longer within iframes

I made a fancier version which got the PDF short URL and document.title, stored them as JSON in localStorage with the direct PDF URL as the key before navigating to the direct link. Running window.history.replaceState(null, original title, original window.location.pathname) made the URL match the original, but turns out calling the history API breaks Ctrl + S save as (the browser thinks the page is HTML)

Would be nice if future browsers fixed that - could have a neater address bar.

This should be ready to put on the webstore anyway, I've incremented the manifest version for you :-)

lmmx avatar Aug 30 '15 19:08 lmmx