generated at
UserScript:ふきだし入力支援

ふきだし入力支援ポップアップメニュー
script.js
scrapbox.PopupMenu.addButton({ title: '<吹出', onClick: text => text.split(/\n/) .map(line => { if (line.match(/\[suto3\.icon\]\[\{/)) { return line.replace(/\[suto3\.icon\]\[\{\s+/g, '').replace(/\]/g, '') } else {  if (!line.length) return line return`[suto3.icon][{ ${line}]` } }) .join('\n') }) scrapbox.PopupMenu.addButton({ title: '吹出>', onClick: text => text.split(/\n/) .map(line => { if (line.match(/\]\[suto3\.icon\]/)) { return line.replace(/\[\}\s+/g, '').replace(/\]\[suto3\.icon\]/g, '') } else {  if (!line.length) return line return`[} ${line}][suto3.icon]` } }) .join('\n') })

UserScript