Skip to content

Commit

Permalink
Add 'watch comments on YouTube button'
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Aug 4, 2018
1 parent 3398a9f commit 9fd0a02
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/invidious/views/watch.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ function get_youtube_comments() {
function(jsonResponse) {
comments = document.getElementById('comments');
comments.innerHTML = `
<div>
<h3>
<a href="javascript:void(0)" onclick="toggle_comments(this)">[ - ]</a>
<a target="_blank" href="https://www.youtube.com/watch?v=<%= video.id %>">View more comments on YouTube</a>
</h3>
</div>
<div>{content_html}</div>
<hr style="margin-left:1em; margin-right:1em;">`.supplant({
content_html: jsonResponse.content_html
Expand Down

0 comments on commit 9fd0a02

Please sign in to comment.