var canonical = document.querySelector('link[rel="canonical"]'); canonical.remove(); const meta = document.createElement("meta"); meta.name = "robots"; meta.content = "noindex"; document.head.appendChild(meta); const newUrl = "https://ahiru8usagi.hatenablog.com/entry/amazonmusicunlimited-campaign-2…