diff options
author | James Taylor <user234683@users.noreply.github.com> | 2020-10-20 17:48:18 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2020-10-20 17:48:18 -0700 |
commit | 95f2f027eabdcc4dc3c1a77829bf2bf503ed2939 (patch) | |
tree | fcecb8b267206a7c36244864c4cedd57bcdc5072 | |
parent | f100685d64f5e93f1ec2a58379a986beb012b482 (diff) | |
download | yt-local-95f2f027eabdcc4dc3c1a77829bf2bf503ed2939.tar.lz yt-local-95f2f027eabdcc4dc3c1a77829bf2bf503ed2939.tar.xz yt-local-95f2f027eabdcc4dc3c1a77829bf2bf503ed2939.zip |
Comments.js: Add open in new tab button under replies as fallback
if xhr request fails
-rw-r--r-- | youtube/static/comments.css | 5 | ||||
-rw-r--r-- | youtube/templates/comments.html | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/youtube/static/comments.css b/youtube/static/comments.css index 1c21e73..8509e5d 100644 --- a/youtube/static/comments.css +++ b/youtube/static/comments.css @@ -132,6 +132,11 @@ details.replies > summary{ padding-bottom: 0px; } +.replies-open-new-tab{ + display: inline-block; + margin-top: 5px; +} + details.replies .comment{ width: 600px; } diff --git a/youtube/templates/comments.html b/youtube/templates/comments.html index 9d93b8c..32a67ad 100644 --- a/youtube/templates/comments.html +++ b/youtube/templates/comments.html @@ -25,6 +25,7 @@ {% if settings.use_comments_js and comment['reply_count'] %} <details class="replies" src="{{ comment['replies_url'] }}"> <summary>{{ comment['view_replies_text'] }}</summary> + <a href="{{ comment['replies_url'] }}" class="replies-open-new-tab" target="_blank">Open in new tab</a> <div class="comment_page">loading..</div> </details> {% else %} |