/*
* WebToScrapbox.js
* ブラウザで見ているページのタイトルとURLをScrapboxに保存するBookmarklet
*/
function start() {
const project = 'https://scrapbox.io/YOURPROJECT/';
const url = location.href;
const title = document.title;
const body = "\n [" + title + ' ' + url + ']';
window.open(project + encodeURIComponent(title) + '?body=' + encodeURIComponent(body));
}start();
https://gist.github.com/hyuki/7d67be5278eba0f317d9dccbaaba1a43