script.jsscrapbox.PopupMenu.addButton({ title: text => text.match(/[。.]/) ? '句点切り' : null, onClick: text => text.replace(/[。.]/g, '\n'), })
text => text.replace(/[。.]/g, '$&\n')