公開タグをつけるUserScript
code:script.js
scrapbox.PageMenu.addMenu({
// title: '#not-private',
title: 'public.icon',
// onClick: () => window.open(${location.href}?body=%23not-private%0A, '_self'),
onClick: () => window.open(${location.href}?body=%5Bpublic.icon%5D%0A, '_self'),
});
code:script.js_test
scrapbox.PageMenu.addMenu({
title: '#not-private',
onClick: () => {
const a = document.createElement('a');
a.href = ./${encodeURIComponent(scrapbox.Page.title)}?body=%23not-private%0A; // not-private\n
a.rel = 'route';
document.body.appendChild(a);
a.click();
a.remove();
return;
}
});
https://gyazo.com/e35bf28e8ff954d5ebfeb81c69c4f640