Based on https://github.com/deepsweet/microjungle
As of
This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/25520/162317/microjungle%20JsonML%20to%20DocumentFragment.js
var mj = new MicrojungleJsonMLtoDocumentFragment(); var jm = [["div", {class: "fun"}, "hello"]]; mj(jm).firstElementChild.outerHTML === "