Commit 8e682cc 1 parent 82f47a0 commit 8e682cc Copy full SHA for 8e682cc
File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const COMMENT_COLLAPSE_DEPTH = 1;
28
28
// set all of hn's classes for the collapsed comment
29
29
comment . classList . add ( 'coll' )
30
30
const toggle = comment . querySelector ( '.togg' )
31
- toggle . innerHTML = `[+${ toggle . getAttribute ( 'n' ) } ]`
31
+ toggle . textContent = `[+${ toggle . getAttribute ( 'n' ) } ]`
32
32
comment . querySelector ( '.comment' ) . classList . add ( 'noshow' )
33
33
comment . querySelector ( '.votelinks' ) . classList . add ( 'nosee' )
34
34
Original file line number Diff line number Diff line change 16
16
// set all of hn's classes for the collapsed comment
17
17
comment . classList . add ( 'coll' )
18
18
const toggle = comment . querySelector ( '.togg' )
19
- toggle . innerHTML = `[+${ toggle . getAttribute ( 'n' ) } ]`
19
+ toggle . textContent = `[+${ toggle . getAttribute ( 'n' ) } ]`
20
20
comment . querySelector ( '.comment' ) . classList . add ( 'noshow' )
21
21
comment . querySelector ( '.votelinks' ) . classList . add ( 'nosee' )
22
22
}
Original file line number Diff line number Diff line change 12
12
const count = document . querySelector ( 'ytd-comments-header-renderer h2#count .count-text' )
13
13
if ( ! count ) { return }
14
14
15
- count . innerHTML = count . textContent . replace ( / [ \d , ] + \s / , '' )
15
+ count . textContent = count . textContent . replace ( / [ \d , ] + \s / , '' )
16
16
17
17
observer . disconnect ( )
18
18
} )
You can’t perform that action at this time.
0 commit comments