javascriptlet json = scrapbox.Page.lines
let blob = new Blob([JSON.stringify(json,undefined,2)], {"type":"text/plain"})
let a = document.createElement("a")
a.href = window.URL.createObjectURL(blob)
a.download = scrapbox.Page.title + ".json"
a.click()