Skip to content

Commit 8e682cc

Browse files
committed
Remove innerHTML warnings from firefox submission
1 parent 82f47a0 commit 8e682cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hacker-news/collapse-deep-comments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const COMMENT_COLLAPSE_DEPTH = 1;
2828
// set all of hn's classes for the collapsed comment
2929
comment.classList.add('coll')
3030
const toggle = comment.querySelector('.togg')
31-
toggle.innerHTML = `[+${toggle.getAttribute('n')}]`
31+
toggle.textContent = `[+${toggle.getAttribute('n')}]`
3232
comment.querySelector('.comment').classList.add('noshow')
3333
comment.querySelector('.votelinks').classList.add('nosee')
3434

src/hacker-news/collapse-low-quality-comments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// set all of hn's classes for the collapsed comment
1717
comment.classList.add('coll')
1818
const toggle = comment.querySelector('.togg')
19-
toggle.innerHTML = `[+${toggle.getAttribute('n')}]`
19+
toggle.textContent = `[+${toggle.getAttribute('n')}]`
2020
comment.querySelector('.comment').classList.add('noshow')
2121
comment.querySelector('.votelinks').classList.add('nosee')
2222
}

src/youtube/remove-comment-count.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
const count = document.querySelector('ytd-comments-header-renderer h2#count .count-text')
1313
if (!count) { return }
1414

15-
count.innerHTML = count.textContent.replace(/[\d,]+\s/, '')
15+
count.textContent = count.textContent.replace(/[\d,]+\s/, '')
1616

1717
observer.disconnect()
1818
})

0 commit comments

Comments
 (0)