Kiuhrly
If you have a Google Pixel phone running the stock OS, you already have this! https://support.google.com/pixelphone/answer/7535326?hl=en#z...
sed \
-e '/[/][/]script/r index.js' -e '/[/][/]script/d' \
-e '/ <script defer src="[.][/]index[.]js"><[/]script>/d' \
-e '/[/][*]style[*][/]/r styles.css' -e '/[/][*]style[*][/]/d' \
-e '/ <link rel="stylesheet" href="styles[.]css">/d' \
index.html
The HTML contains something like this: <link rel="stylesheet" href="styles.css">
<style>
/*style*/
</style>
and the script just deletes the <link> tag and replaces the /style/ comment with the contents of styles.css. Definitely not my finest work but it worked well enough.For example, I've toyed with the idea of creating a game which runs its logic/simulation entirely in WASM with the only input being the controller/keyboard inputs. That way you can create perfectly reproducable replays which could be used for racing games or timed platform games similar to Mario Maker. Then your leaderboard of best times can be properly verified (not accounting for manufactured/edited replays similar to TASs, Tool Assisted Speedruns). You could take it a step further and include previous versions of the game simulation WASM to get backwards replay compatibility, which is also uncommon in games.