File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 255
255
editedComments = Array . from ( document . querySelectorAll ( ".Comment div span" ) ) . filter ( function ( x , y , z ) {
256
256
return x . parentElement . querySelector ( "a.showOriginal" ) === null && x . innerText . substr ( 0 , 6 ) == "edited" ;
257
257
} ) ;
258
- /* include deleted comments */
258
+ /* include deleted comments by user */
259
259
editedComments = editedComments . concat (
260
260
Array . from ( document . querySelectorAll ( ".Comment div span" ) ) . filter ( function ( x , y , z ) {
261
261
return (
264
264
) ;
265
265
} )
266
266
) ;
267
+ /* include deleted comments by moderator */
268
+ editedComments = editedComments . concat (
269
+ Array . from ( document . querySelectorAll ( ".Comment div span" ) ) . filter ( function ( x , y , z ) {
270
+ return (
271
+ x . parentElement . querySelector ( "a.showOriginal" ) === null &&
272
+ x . innerText . substr ( 0 , 15 ) == "Comment removed"
273
+ ) ;
274
+ } )
275
+ ) ;
267
276
} else {
268
277
/* Old Reddit */
269
278
/* edited comments and submissions */
You can’t perform that action at this time.
0 commit comments