takahrt
https://gyazo.com/db35b873a0531d04d492ebdd051453bf
this is takahrt’s page
タカヒロト
富山孝裕
ご連絡は、'https://twitter.com/takahrt または、'https://www.facebook.com/takahiro.tomiyama のDM宛てにて
#member
takahrt.icon 複業で少女漫画の原作を書いております。まだ商業的ではありません
code:script.js
scrapbox.PopupMenu.addButton({
title: 'NewPage',
onClick: text => {
const lines = text.split(/\r\n/g)
const title = lines0
.trim()
.replace(/\^\+.icon\]/gm, '')
.replace(/[\\]/g, '')
const projectRoot = (() => {
const tmp = location.href.split('/')
tmp.pop()
return tmp.join('/')
})()
const currentPageTitle = decodeURIComponent(location.href.split(/\//g).pop())
lines.unshift(from [${currentPageTitle}])
const body = encodeURIComponent(lines.join('\n'))
window.open(${projectRoot}/${title}?body=${body})
return [${title}]
}
})