sh1ma
https://scrapbox.io/files/629ca27a7c36b3001d4b112e.png
23歳
code:style.css
.hide-search-form {
visibility: hidden;
}
code:script.js
const imageElements = document.querySelectorAll(".image")
imageElements.forEach(e => {
const parent = e.closest("a")
const src = e.attributes"src" console.log(src)
console.log(new URL(src.value).host)
if (new URL(src.value).host === "narrow-bison-48.deno.dev") {
console.log("test")
fetch("/api/pages/talka-private/private_value/text").then(resp => {
console.log(resp.ok)
resp.text().then(t => {
console.log(t)
e.setAttribute("src", ${src.value}?tokachan=${t.split("\n")[1]})
})})
}
})