document.body.innerHTML = dt.getAttributeNode("href").value.replace("/",newURL);
You're setting the HTML of the <body>
tag to a string. What did you expect this to do?
If all you're trying to do is modify the href
attribute on the <a>
tag, try instead doing something more like:
document.getElementById('logo-container').href = "/feed/subscriptions";