Condense try-reddit-comments-link HTML in player.js

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
syeopite 2023-09-17 18:43:12 +00:00 committed by syeopite
parent a455df4a6e
commit 7caa9da988
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -78,13 +78,9 @@ function get_youtube_comments() {
<div id="comments-turned-off-on-video-message" class="h-box v-box">
<p><b>${video_data.youtube_comments_disabled_text}</b></p>
<p>
<b>
<a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">
${video_data.youtube_comments_disabled_try_reddit}
</a>
</b>
</p>
<p><b><a href="javascript:void(0)" data-comments="reddit" id="try-reddit-comments-link">
${video_data.youtube_comments_disabled_try_reddit}
</a></b></p>
</div>`;
document.getElementById("try-reddit-comments-link").onclick = swap_comments;