script.jsscrapbox.PopupMenu.addButton({
title: (text) => /[\n..。]/.test(text) ? "\\n" : "",
onClick: (text) => text
.replace(/(\w)\n(\w)/g, "$1 $2")
.replaceAll("\n", "")
.replaceAll(".", ".\n")
.replaceAll(".", ".\n")
.replaceAll("。", "。\n"),
});