mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-30 01:36:13 -05:00
Add 'watch comments on YouTube button'
This commit is contained in:
parent
3398a9fe6b
commit
9fd0a02f16
@ -284,6 +284,12 @@ function get_youtube_comments() {
|
|||||||
function(jsonResponse) {
|
function(jsonResponse) {
|
||||||
comments = document.getElementById('comments');
|
comments = document.getElementById('comments');
|
||||||
comments.innerHTML = `
|
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>
|
<div>{content_html}</div>
|
||||||
<hr style="margin-left:1em; margin-right:1em;">`.supplant({
|
<hr style="margin-left:1em; margin-right:1em;">`.supplant({
|
||||||
content_html: jsonResponse.content_html
|
content_html: jsonResponse.content_html
|
||||||
|
Loading…
Reference in New Issue
Block a user