generated at
blu3mo

Twitter: @blu3mo

2022/3/9 ID変更

-
script.js
import '/api/code/bluemountain-theme/script_all/script.js'; import '/api/code/bluemountain-theme/同タイトルのpublic%2Fprivateページに飛ぶscript/script.js' import '/api/code/blu3mo/pin-diary-6-weekly/script.js'

script.js
scrapbox.TimeStamp.addFormat('YYYYMMDD') import '/api/code/blu3mo/Tweetを取り込むPopup menu v2/script.js';



script.js
scrapbox.PopupMenu.addButton({ title: 'ToMyProj', onClick: text => { const dst = 'nishio' const src = scrapbox.Project.name const new_text = text.replace(/\[([^\]\/]+).icon\]/gm, `[/${src}/$1.icon]`) const lines = new_text.split(/[\r\n]/g) const title = scrapbox.Page.title lines.unshift(`from [/${src}/${title}]`) const title_url = encodeURIComponent(title) const body = lines.join('\n') navigator.clipboard.writeText(body).then(()=>{ if (window.confirm("copied. create page?")) { const body_enc = encodeURIComponent(body) window.open(`https://scrapbox.io/${dst}/Re:${title_url}?body=${body_enc}`) } }) }, })