faviconをページのアイコンにする
https://gyazo.com/4c1a4db2444ccf015b5b04f32519cb74
code:script.js
const setFavicon = () => {
if (scrapbox.Page.title) {
document.querySelector('linkrel="icon"').href=/api/pages${location.pathname}/icon; }
};
window.scrapbox.addListener("page:changed", setFavicon);
setFavicon();