js// img要素のスタイル
var style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = `
th img {
max-width: 100px;
}
tbody th {
display: flex;
flex-direction: column;
}`;
document.getElementsByTagName('head')[0].appendChild(style);
// /iconを持ってきている
Array.from(document.querySelectorAll(".literal-database tr")).slice(1).forEach(function(row) {
var img = document.createElement("img");
var targetTh = row.querySelector("th");
img.src = `/api/pages/${scrapbox.Project.name}/${targetTh.innerText.replace(/\//g,"%2F")}/icon`;
targetTh.appendChild(img);
});