UserScript:ふきだし入力支援
吹き出し
UserCSS:吹き出し記法
Scrapbox:吹き出し記法
Scrapbox:拡張文字装飾記法
ふきだし入力支援ポップアップメニュー
code: 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')
})
scrapbox.PopupMenu.addButton()
UserScript.icon
https://img.shields.io/badge/JavaScript-UserScript_ふきだし入力支援-F7DF1E.svg?logo=javascript&style=for-the-badge