summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-08-04 09:36:05 -0500
committerOmar Roth <omarroth@hotmail.com>2018-08-04 09:36:05 -0500
commit9fd0a02f1682ce95dce60c5bd7523af47f14397e (patch)
tree01f50cc485c6c207a99a53b8452bc6a61473797c
parent3398a9fe6b8c3598a30d4571cab4aa76fa275bff (diff)
downloadinvidious-9fd0a02f1682ce95dce60c5bd7523af47f14397e.tar.gz
invidious-9fd0a02f1682ce95dce60c5bd7523af47f14397e.tar.bz2
invidious-9fd0a02f1682ce95dce60c5bd7523af47f14397e.zip
Add 'watch comments on YouTube button'
-rw-r--r--src/invidious/views/watch.ecr6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr
index 3b72f82a..b6119468 100644
--- a/src/invidious/views/watch.ecr
+++ b/src/invidious/views/watch.ecr
@@ -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