Feature #70
[Roadmap 7][Milestone] Add facility to replace sites' original HTML with custom one
0%
Description
So far we were focusing on writing custom javascript for files. However, we often end up implementing our own site interface, either bacause
- site's original interface is entirely constructed with proprietary javascript or
- 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 document.creteElement()
and construct replacement interfaces in javascript. While this works, it is not as convenient, as it could be. In the future we should allow custom HTML document to be included in a fix and rendered instead of site's original one. We could make the original document available to injected scripts through some global variable (say, hachette_document_original
) for the purpose of extracting the necessary data from there.
Related issues
History
Updated by koszko about 2 years ago
- Related to Feature #69: [Roadmap 7][Milestone] Facilitate bundling HTML/XML/JSON and other data with a fix added
Updated by koszko about 2 years ago
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
- Use
document.write()
to display what we actually want to be displayed
So we would display the Hachette-provided HTML file :)
Updated by koszko over 1 year ago
- Related to Feature #108: [Roadmap 7] Further means of user-controlled customization of sites added
Updated by koszko over 1 year ago
- Related to deleted (Feature #108: [Roadmap 7] Further means of user-controlled customization of sites)
Updated by koszko over 1 year ago
- Blocks Feature #108: [Roadmap 7] Further means of user-controlled customization of sites added
Updated by koszko over 1 year ago
- Subject changed from Add facility to replace sites' original HTML with custom one to [Roadmap 7][Milestone] Add facility to replace sites' original HTML with custom one
- Description updated (diff)