UserScript that, when executed on a Scrapbox page, creates a page in a private project with a key in the title, and the earth symbol is a link to the original page. image

script.js

const privateProject = "..."
scrapbox.PageMenu.addItem({
  title: 'toπŸ”’',
  onClick: () => {
	const title = document.location.pathname.split("/")[2];
	window.open(`https://scrapbox.io/${privateProject}/πŸ”’${title}`, "_blank")
  }
})
scrapbox.PageMenu.addItem({
  title: 'makeπŸ”’',
  onClick: () => {
	const title = document.location.pathname.split("/")[2];
	const body = `[https://scrapbox.io/nishio/${title} 🌏] [${title}]`
	window.open(`https://scrapbox.io/${privateProject}/πŸ”’${title}?body=${body}`, "_blank")
  }
})

This page is auto-translated from /nishio/toπŸ”’ using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I’m very happy to spread my thought to non-Japanese readers.