Skip to content

Commit

Permalink
Remove innerHTML warnings from firefox submission
Browse files Browse the repository at this point in the history
  • Loading branch information
a13o committed Jul 29, 2018
1 parent 82f47a0 commit 8e682cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hacker-news/collapse-deep-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const COMMENT_COLLAPSE_DEPTH = 1;
// set all of hn's classes for the collapsed comment
comment.classList.add('coll')
const toggle = comment.querySelector('.togg')
toggle.innerHTML = `[+${toggle.getAttribute('n')}]`
toggle.textContent = `[+${toggle.getAttribute('n')}]`
comment.querySelector('.comment').classList.add('noshow')
comment.querySelector('.votelinks').classList.add('nosee')

Expand Down
2 changes: 1 addition & 1 deletion src/hacker-news/collapse-low-quality-comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// set all of hn's classes for the collapsed comment
comment.classList.add('coll')
const toggle = comment.querySelector('.togg')
toggle.innerHTML = `[+${toggle.getAttribute('n')}]`
toggle.textContent = `[+${toggle.getAttribute('n')}]`
comment.querySelector('.comment').classList.add('noshow')
comment.querySelector('.votelinks').classList.add('nosee')
}
Expand Down
2 changes: 1 addition & 1 deletion src/youtube/remove-comment-count.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const count = document.querySelector('ytd-comments-header-renderer h2#count .count-text')
if (!count) { return }

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

observer.disconnect()
})
Expand Down

0 comments on commit 8e682cc

Please sign in to comment.