Closed TheFabulousPika closed 3 years ago
function addAltTextToEmoticons(a){
var thisMsgNode = a;
var allEmoticons = thisMsgNode.querySelectorAll('[class*=emoticon_emoticon]');
for (var i = 0; i < allEmoticons.length; i++){
var thisEmoticon = allEmoticons[i];
var altText = document.createAttribute("alt");
altText.value = thisEmoticon.getAttributeNode("data-copytext").value;
thisEmoticon.setAttributeNode(altText);
}
return thisMsgNode;
}
function cleanupMsg(a){
var thisMsgNode = a;
var cleanedMsgText = '';
thisMsgNode = addAltTextToEmoticons(thisMsgNode);
...
Emoticon alt text is missing in the original chat. This is an issue on Steam's end.
Add feature to extension that adds alt text