const head = document.head; const canonical = document.querySelector("link[rel='canonical']"); if (canonical) { head.removeChild(canonical); } const newCanonical = document.createElement("link"); newCanonical.rel = "canonical"; newCanonical.href = "https://ahiru8usagi.hatenablog.com/entry/googlepix…