mirror of
https://github.com/iv-org/invidious.git
synced 2024-10-01 01:25:56 -04:00
Add missing semicolons, remove unused code
This commit is contained in:
parent
6d654e1bdf
commit
7e752eece4
@ -16,7 +16,7 @@ function updateReplyLinks() {
|
|||||||
replyLink.removeAttribute("target");
|
replyLink.removeAttribute("target");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
updateReplyLinks()
|
updateReplyLinks();
|
||||||
|
|
||||||
function toggle_comments(event) {
|
function toggle_comments(event) {
|
||||||
var target = event.target;
|
var target = event.target;
|
||||||
@ -112,7 +112,7 @@ function get_youtube_comments() {
|
|||||||
})
|
})
|
||||||
});
|
});
|
||||||
comments.innerHTML = commentInnerHtml;
|
comments.innerHTML = commentInnerHtml;
|
||||||
updateReplyLinks()
|
updateReplyLinks();
|
||||||
comments.children[0].children[0].children[0].onclick = toggle_comments;
|
comments.children[0].children[0].children[0].onclick = toggle_comments;
|
||||||
if (video_data.support_reddit) {
|
if (video_data.support_reddit) {
|
||||||
comments.children[0].children[1].children[0].onclick = swap_comments;
|
comments.children[0].children[1].children[0].onclick = swap_comments;
|
||||||
@ -152,7 +152,7 @@ function get_youtube_replies(target, load_more, load_replies) {
|
|||||||
body = body.parentNode.parentNode;
|
body = body.parentNode.parentNode;
|
||||||
body.removeChild(body.lastElementChild);
|
body.removeChild(body.lastElementChild);
|
||||||
body.insertAdjacentHTML('beforeend', response.contentHtml);
|
body.insertAdjacentHTML('beforeend', response.contentHtml);
|
||||||
updateReplyLinks()
|
updateReplyLinks();
|
||||||
} else {
|
} else {
|
||||||
body.removeChild(body.lastElementChild);
|
body.removeChild(body.lastElementChild);
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ function get_youtube_replies(target, load_more, load_replies) {
|
|||||||
|
|
||||||
body.appendChild(p);
|
body.appendChild(p);
|
||||||
body.appendChild(div);
|
body.appendChild(div);
|
||||||
updateReplyLinks()
|
updateReplyLinks();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onNon200: function (xhr) {
|
onNon200: function (xhr) {
|
||||||
|
@ -12,7 +12,7 @@ function updateReplyLinks() {
|
|||||||
replyLink.removeAttribute("target");
|
replyLink.removeAttribute("target");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
updateReplyLinks()
|
updateReplyLinks();
|
||||||
|
|
||||||
function get_youtube_replies(target) {
|
function get_youtube_replies(target) {
|
||||||
var continuation = target.getAttribute('data-continuation');
|
var continuation = target.getAttribute('data-continuation');
|
||||||
@ -33,7 +33,7 @@ function get_youtube_replies(target) {
|
|||||||
body = body.parentNode.parentNode;
|
body = body.parentNode.parentNode;
|
||||||
body.removeChild(body.lastElementChild);
|
body.removeChild(body.lastElementChild);
|
||||||
body.insertAdjacentHTML('beforeend', response.contentHtml);
|
body.insertAdjacentHTML('beforeend', response.contentHtml);
|
||||||
updateReplyLinks()
|
updateReplyLinks();
|
||||||
},
|
},
|
||||||
onNon200: function (xhr) {
|
onNon200: function (xhr) {
|
||||||
body.innerHTML = fallback;
|
body.innerHTML = fallback;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<% content_for "header" do %>
|
<% content_for "header" do %>
|
||||||
<title>Invidious</title>
|
<title>Invidious</title>
|
||||||
<noscript><style>.jsOnly { display: none;}</style></noscript>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<!-- basic comments page for people with js disabled. -->
|
<!-- basic comments page for people with js disabled. -->
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
<% content_for "header" do %>
|
<% content_for "header" do %>
|
||||||
<link rel="alternate" href="<%= youtube_url %>">
|
<link rel="alternate" href="<%= youtube_url %>">
|
||||||
<title><%= author %> - Invidious</title>
|
<title><%= author %> - Invidious</title>
|
||||||
<noscript><style>.jsOnly { display: none;}</style></noscript>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= rendered "components/channel_info" %>
|
<%= rendered "components/channel_info" %>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<% content_for "header" do %>
|
<% content_for "header" do %>
|
||||||
<title>Invidious</title>
|
<title>Invidious</title>
|
||||||
<noscript><style>.jsOnly { display: none;}</style></noscript>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
@ -42,7 +42,6 @@ we're going to need to do it here in order to allow for translations.
|
|||||||
content: "<%= translate(locale, "Show less") %>"
|
content: "<%= translate(locale, "Show less") %>"
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<noscript><style>.jsOnly { display: none;}</style></noscript>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<script id="video_data" type="application/json">
|
<script id="video_data" type="application/json">
|
||||||
|
Loading…
Reference in New Issue
Block a user