User:Writ Keeper/Scripts/teahouseTalkbackLink.js: Difference between revisions

Content deleted Content added
m stylistic differences
m addAfter
Line 22:
newLink.innerHTML = "TB";
newLink.style.fontSize = "x-small";
link.parentNode.insertBeforeaddAfter(newLink, link);
i++;
}
Line 28:
}
}
}
}
function addAfter(newNode, oldNode)
{
if(oldNode.nextSibling != null)
{
oldNode.parentNode.insertBefore(newNode, oldNode.nextSibling);
}
else
{
oldNode.parentNode.appendChild(newNode);
}
}