From c1a16493e91a5ee1bf898b356e72817dae736488 Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 21 Nov 2023 17:52:46 +0000 Subject: [PATCH] add alot of stuff :3 --- html/poketube.ejs | 115 ++++++++++++++++++++++------------------------ 1 file changed, 56 insertions(+), 59 deletions(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index d344d61d..110b0baa 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -696,8 +696,7 @@ But Please note that unofficial instances can add the same lock icon, so please - - +
@@ -939,10 +938,10 @@ display: block; !important;" autoplay controls <% if (!a) { %> - <% } %> + + <% } %> - -
+
<% if (!qua) { %> @@ -973,22 +972,7 @@ display: block; !important;" autoplay controls - - <% if (inv.comments) { %> - - <% if (inv.comments.length > 8 ) { %> - -
- <% inv.comments.slice(-8).forEach(x =>{ %> - - <%- x.contentHtml %> - - - <% }) %> -
- <% } %> <% } %> - - +
@@ -1499,9 +1483,7 @@ Recommended Videos
- <% if (!f) { %> -<% k.Video.Recommendations?.Video?.forEach(x => { %>
<% if (!optout) { %> <%- x.duration || "LIVE"%> <% } %> <% if (optout) { %> <%- x.duration || "LIVE"%> <% } %>
<% if (!optout) { %> <%= x.Title %> <% } %> <% if (optout) { %> <%= x.Title %> <% } %>
<%=x.Channel.Name %>
<%= x.uploadedAt.replace("Streamed", "Live") %> • <%= convert(x.views) %> views
<% }) %> - <% } %> +<% if (!f) { %> <% k.Video.Recommendations?.Video?.forEach(x => { %>
<% if (!optout) { %> <%- x.duration || "LIVE"%> <% } %> <% if (optout) { %> <%- x.duration || "LIVE"%> <% } %>
<% if (!optout) { %> <%= x.Title %> <% } %> <% if (optout) { %> <%= x.Title %> <% } %>
<%=x.Channel.Name %>
<%= x.uploadedAt.replace("Streamed", "Live") %> • <%= convert(x.views) %> views
<% }) %><% } %> <% if (f) { %> @@ -1600,14 +1582,7 @@ Recommended Videos
- - - - - - - - + @@ -1704,6 +1679,7 @@ const urlParams = new URLSearchParams(window.location.search); if (!urlParams.has('hl') && !urlParams.has('region') && languageCode && regionCode) { location.href = currentURL + `®ion=${regionCode}&hl=${languageCode}`; } + let isMiddleButtonPressed = false; // Function to change video speed @@ -1741,8 +1717,8 @@ if (userID) { anchor.href = `/api/set-channel-subs?ID=${userID}&channelName=<%=k.Video.Channel.Name%>&avatar=https://p.poketube.fun/<%= k.Video.Channel.Avatar[1].$t %>&channelID=<%=video?.Channel.id || k.Video.Channel.id %>`; } else { // If user ID doesn't exist in localStorage, you can handle it as needed - console.log("User ID not found in localStorage"); - // Optionally, you can set a default href or display an error message. + anchor.href = "/account-create" + // Optionally, you can set a default href or display an error message. } // Now, all the selected video links should have the parameters added to their href attributes @@ -1756,7 +1732,14 @@ if (userID) { - +<% if(!IsOldWindows) { %> + + <% } %> + + <% if(!IsOldWindows) { %> + -