image

https://www.gravatar.com/avatar/48b49836fa2b6cf65c433df81bb67348?s=512&.png


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

Indent Display

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}`)
      }
    })
  },
})

#member