[Roadmap 7][Milestone] Add facility to replace sites' original HTML with custom one
- site's original interface is so unsuitable (e.g. has non-working interactive elements we don't want to support) that it just has to be replaced, or
- accessibility/usability/KISS principle requires it, or
- because we just want to.
Currently existing fixes heavily use
hachette_document_original) for the purpose of extracting the necessary data from there.
Together with this, we could allow scripts to access the original, raw HTML code of the page in question. I am mentioning this here as requested in #78
We are perfectly able to:
- Use webRequest to modify response headers to spoof and force a content type like "text/plain"
- Access the raw HTML code from content script
document.write()to display what we actually want to be displayed
So we would display the Hachette-provided HTML file :)