Project

General

Profile

Feature #69

Updated by koszko over 1 year ago

Consider fixes like that for Google Sheets[^gsheets_script]. They heavily use `document.createElement()` to construct parts of user interface in javascript. While this works, it is not as convenient, as if the interface was specified using actual HTML/XML code. Bundling pieces of HTML/XML would allow us to focus only on important things in actual scripts.

The ability to bundle other kinds of data (plain text, JSON, images, other binary files) would also be useful.

It is yet to be decided how bundled data files should be injected into page. Perhaps it would be possible to use something like `<script type="application/octet-stream">**data goes here**</script>` appended at the end of document's body? Perhaps it would be safer to make the data available straight to injected scripts through global variables? Or perhaps it should be injected into DOM as base64-encoded embedded files?

Please share your thoughts.

In case of doubt, this relates to the [[Hydrilla:Repository API|new API]]

[Roadmap](/projects/hachette/wiki/Roadmap#Milestones-7) [Roadmap](/projects/haketilo/wiki/Roadmap#7-Further-means-of-user-controlled-customization-of-sites-108)

[^gsheets_script]: https://git.koszko.org/hydrilla-fixes-bundle/tree/src/google_sheets_download.js

Back