MetaFilter number all comments

On MetaFilter.com, adds a comment number like "comment 1 of 30" to each comment.

Author
Tehhund
Daily installs
0
Total installs
27
Ratings
0 0 0
Version
17
Created
2019-08-12
Updated
2023-01-18
License
N/A
Applies to

Updated to work with a change to MetaFilter's HTML. Used to use

divToHighlight.lastChild.innerHTML += '<span class=\'tehhundUserScriptCommentCount\'>Comment ' + (i+1) + ' of ' + allCommentDivs.length + '. </span>';

now uses

divToHighlight.querySelector('.smallcopy').innerHTML += '<span class=\'tehhundUserScriptCommentCount\'>Comment ' + (i+1) + ' of ' + allCommentDivs.length + '. </span>';