так что ли не работает?
<!doctype html>
<body>
<span hashString="beb1994bf5bb8fa1f7ce50687bf4bde3" hashType="content"></span>
</body>
<script src="http://mazktest.ucoz.ru/scr.js"></script>
<script>
for(var a = document.getElementsByTagName("span"), b = a.length, c, d;b--;) {
if((c = a[b].getAttribute("hashString")) && a[b].getAttribute("hashType") === "content") {
d = document.createElement("span"), d.innerHTML = base[c], a[b].parentNode.replaceChild(d, a[b])
}
}
</script>