https://www.gravatar.com/avatar/48b49836fa2b6cf65c433df81bb67348?s=512&.png
-
Twitter: @blu3mo
-
ID changed on 2022/3/9
script.js
import '/api/code/bluemountain-theme/script_all/script.js';
import '/api/code/bluemountain-theme/Go to public/private pages with the same title/script.js'
import '/api/code/blu3mo/pin-diary-6-weekly/script.js'
script.js
scrapbox.TimeStamp.addFormat('YYYYMMDD')
import '/api/code/blu3mo/Import Tweets Popup menu v2/script.js';
CSS for Kanban UI in Scrapbox style.css
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}`)
}
})
},
})