For a KISS version of this, there is the Single File add on:
https://addons.mozilla.org/fr/firefox/addon/single-file/
It will save any page as a standalone HTML file, including inlined external resources.
https://addons.mozilla.org/fr/firefox/addon/single-file/
It will save any page as a standalone HTML file, including inlined external resources.