script.jsscrapbox.PopupMenu.addButton({ title: '空行・空白削除', onClick: text => text.split(/\n/).filter(line => !line.match(/^\s*$/)).join('\n') })