bookmarklet.jsjavascript: (() => {
const project = scrapbox.Project.name;
const id = scrapbox.Page.id;
window.open(`https://scrapbox.io/api/commits/${project}/${id}`);
})();
bookmarklet2.jsjavascript: (async () => {
const project = scrapbox.Project.name;
const title = scrapbox.Page.title;
const id = scrapbox.Page.id;
const res = await fetch(`/api/commits/${project}/${id}`)
const {commits} = await res.json();
const log = [
`${project}/${title} の編集履歴`,
...commits.flatMap(({created, changes}) => [
"----",
`${new Date(created * 1000)}`,
...changes.map(change => `${JSON.stringify(change)}`)
]),
];
window.open().document.write(`<pre>${log.join('\n')}</pre>`);
})();
<table>
を使って出力するver.