diff --git a/assets/js/watch.js b/assets/js/watch.js index 7a68c30c..799d6af9 100644 --- a/assets/js/watch.js +++ b/assets/js/watch.js @@ -1,52 +1,52 @@ function toggle_parent(target) { - body = target.parentNode.parentNode.children[1]; - if (body.style.display === null || body.style.display === "") { - target.innerHTML = "[ + ]"; - body.style.display = "none"; - } else { - target.innerHTML = "[ - ]"; - body.style.display = ""; - } + body = target.parentNode.parentNode.children[1]; + if (body.style.display === null || body.style.display === "") { + target.innerHTML = "[ + ]"; + body.style.display = "none"; + } else { + target.innerHTML = "[ - ]"; + body.style.display = ""; + } } function toggle_comments(target) { - body = target.parentNode.parentNode.parentNode.children[1]; - if (body.style.display === null || body.style.display === "") { - target.innerHTML = "[ + ]"; - body.style.display = "none"; - } else { - target.innerHTML = "[ - ]"; - body.style.display = ""; - } + body = target.parentNode.parentNode.parentNode.children[1]; + if (body.style.display === null || body.style.display === "") { + target.innerHTML = "[ + ]"; + body.style.display = "none"; + } else { + target.innerHTML = "[ - ]"; + body.style.display = ""; + } } function swap_comments(source) { - if (source == "youtube") { - get_youtube_comments(); - } else if (source == "reddit") { - get_reddit_comments(); - } + if (source == "youtube") { + get_youtube_comments(); + } else if (source == "reddit") { + get_reddit_comments(); + } } -String.prototype.supplant = function(o) { - return this.replace(/{([^{}]*)}/g, function(a, b) { - var r = o[b]; - return typeof r === "string" || typeof r === "number" ? r : a; - }); +String.prototype.supplant = function (o) { + return this.replace(/{([^{}]*)}/g, function (a, b) { + var r = o[b]; + return typeof r === "string" || typeof r === "number" ? r : a; + }); }; function show_youtube_replies(target, inner_text, sub_text) { - body = target.parentNode.parentNode.children[1]; - body.style.display = ""; + body = target.parentNode.parentNode.children[1]; + body.style.display = ""; - target.innerHTML = inner_text; - target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); + target.innerHTML = inner_text; + target.setAttribute("onclick", "hide_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); } function hide_youtube_replies(target, inner_text, sub_text) { - body = target.parentNode.parentNode.children[1]; - body.style.display = "none"; + body = target.parentNode.parentNode.children[1]; + body.style.display = "none"; - target.innerHTML = sub_text; - target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); + target.innerHTML = sub_text; + target.setAttribute("onclick", "show_youtube_replies(this, \'" + inner_text + "\', \'" + sub_text + "\')"); } diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index e1d8604d..df8d5ca4 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -309,7 +309,7 @@ def template_youtube_comments(comments, locale, thin_mode) html += <<-END_HTML
diff --git a/src/invidious/mixes.cr b/src/invidious/mixes.cr index 65e03a06..47c480d7 100644 --- a/src/invidious/mixes.cr +++ b/src/invidious/mixes.cr @@ -105,7 +105,7 @@ def template_mix(mix)
#{video["title"]}
- #{video["author"]} + #{video["author"]}
diff --git a/src/invidious/playlists.cr b/src/invidious/playlists.cr index 6015e5ec..92d9b977 100644 --- a/src/invidious/playlists.cr +++ b/src/invidious/playlists.cr @@ -248,7 +248,7 @@ def template_playlist(playlist)#{video["title"]}
- #{video["author"]} + #{video["author"]}
diff --git a/src/invidious/views/authorize_token.ecr b/src/invidious/views/authorize_token.ecr index d00335e2..267f8ad9 100644 --- a/src/invidious/views/authorize_token.ecr +++ b/src/invidious/views/authorize_token.ecr @@ -3,76 +3,76 @@ <% end %> <% if env.get? "access_token" %> -<%= env.get "access_token" %>
- <%= env.get "access_token" %>
+