User:CanonNi/Scripts/VoteVisualizer.js: Difference between revisions

Content deleted Content added
fix
fix?
 
Line 71:
];
if (voteSymbol) {
boldElement.innerHTMLconst imageUrl = `<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/${voteSymbol}/30px-${voteSymbol.replace(
/..\/..\/(.*)/, ''
)} '${1'
voteSymbol.includes('.svg') ? '.png' : ''}`;
}"const finalUrl alt="${boldElement} vote"voteSymbol.endsWith('.svg') height="15" />? `${boldElementimageURL}.png`;: imageUrl
boldElement.innerHTML = `<img src="${finalUrl}" alt="${boldElement.textContent} vote" height="15" /> ${boldElement.innerHTML}`;
}
});