From a05ab40086d575d12a0dae717f413c124379a37f Mon Sep 17 00:00:00 2001 From: ashley Date: Wed, 26 Jun 2024 14:59:19 +0000 Subject: [PATCH] Update html/poketube.ejs --- html/poketube.ejs | 1257 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1257 insertions(+) diff --git a/html/poketube.ejs b/html/poketube.ejs index 52700d50..858f6bbb 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1,3 +1,5 @@ +<% try { %> + <% if (!isMobile) { %> + + + + <% if (e === false) { %> + + <% } %> + <% if (!e) { %> + + + + + + + + + + + <% } %> + + + <%=inv_vid.title%> | PokeTube Mobile + + + + + /https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css rel=stylesheet> + + + <% if (Array.isArray( !inv.comments)) { %> + + + + <% } %> + + + + + +
+ +
+
+
+ + +
+ +
+ +
+
+ +
+ + <% if (!qua) { %> + + + <% } %> + <% if (qua) { %> + + + <% } %> + +
+ + +
+ + + + + +
+
+ + <%=k.Video.Channel.Name%> + +
+ <%= k.Video.Channel.subscriberCount.replace("subscribers", "Subs") %> +
+
+
+ + + + +
+ +
+
+
+ +
+ +
+ + <%=convert(engagement.likes)%> +
+ +
+ +
+
+ <%=convert(engagement.dislikes)%> +
+ + +
+ <% if (Array.isArray( inv.comments)) { %> + +
+ + + <%- convert(inv.commentCount) %> Comments +
+
+ <% }%> + + +
+ + + Download +
+
+ + <% if (!video?.Channel.Name.endsWith(' - Topic')) { %> + <% if (!inv_vid.title.endsWith('Audio)')) { %> + <% if (support != undefined) { %> + + +
+ + + Support +
+ + + +
+ + <% }%> <% }%> + <% }%> + + +
+ + + My Account +
+
+ + +
+ + + Share +
+
+ + +
+ + Redirect +
+
+ + + +
+ +
+ +
+ + +
+
+ <% if (twitter) { %> + + + <% } %> + + <% if (discord) { %> + + <% } %> + + + <% if (twitch) { %> + + <% } %> + + + <% if (reddit) { %> + + <% } %> + + <% if (instagram) { %> + + <% } %> + + <% if (!twitter) { %> + <% if (!discord) { %> + <% if (!reddit) { %> + <% if (!twitch) { %> + + <% if (!instagram) { %> +
+ Nyo connections found ;_; +
+ <% } %> + <% } %> + <% } %> + + <% } %> <% } %> +
+ + + + + +
+ +
+
+ +
+
+

+ +
+ + +
+
+

Description + +

+
+ +
+ + +
<%=inv_vid.title%>
+ + <% if (inv_vid.genre === "Music") { %> +  Lossless Audio + <% } %> +
+ + +
+ +
+

+ <%=convert(engagement.viewCount)%> +
+

Views

+ +

+
+
+

+ <%=convert(engagement.likes)%> +
+

Likes

+ +

+
+ +
+
+

+ <%=convert(engagement.dislikes)%> +
+

Dislikes

+ +

+
+
+
+
+ + <% + const likes = parseInt(engagement.likes) || 0; + const dislikes = parseInt(engagement.dislikes) || 0; + const total = likes + dislikes; + + const likePercentage = total > 0 ? ((likes / total) * 100).toFixed(2) : 0; + const dislikePercentage = total > 0 ? ((dislikes / total) * 100).toFixed(2) : 0; + + const getLikePercentageColor = (percentage) => { + if (percentage >= 80) { + return 'green'; + } else if (percentage >= 50) { + return 'orange'; + } else { + return 'red'; + } + }; + + const getDislikePercentageColor = (percentage) => { + if (percentage >= 50) { + return 'red'; + } else if (percentage >= 20) { + return 'orange'; + } else { + return 'green'; + } + }; + + const likeColor = getLikePercentageColor(likePercentage); + const dislikeColor = getDislikePercentageColor(dislikePercentage); + + const userScore = (parseFloat(likePercentage) - parseFloat(dislikePercentage) / 2).toFixed(2); + + const getUserScoreLabel = (score) => { + if (score >= 80) { + return 'Overwhelmingly Positive'; + } else if (score >= 60) { + return 'Positive'; + } else if (score >= 40) { + return 'Mixed'; + } else if (score >= 20) { + return 'Negative'; + } else { + return 'Overwhelmingly Negative'; + } + }; + + const userScoreLabel = getUserScoreLabel(userScore); + const userScoreColor = userScore >= 80 ? 'green' : userScore >= 50 ? 'orange' : 'red'; + %> +
+ <%-String(channelurlfixer(inv_vid.descriptionHtml)).replace(/\n/g, "
").replace(/twitter\.com/g, "twitter.com").replace(/reddit\.com/g, "redlib.matthew.science") %> + + + +
Rating! :3
+ +
<%= likePercentage %>% of the users lieked the video!!
+ <%= dislikePercentage %>% of the users dislieked the video!!
+ User score: <%= userScore %>- <%= userScoreLabel %>

+ + + + +
+ + + + +
+ + + +
+ +
+
Connections
+ +
+ <% if (twitter) { %> + + + <% } %> + + <% if (discord) { %> + + <% } %> + + + <% if (twitch) { %> + + <% } %> + + + <% if (reddit) { %> + + <% } %> + + <% if (instagram) { %> + + <% } %> + + <% if (!twitter) { %> + <% if (!discord) { %> + <% if (!reddit) { %> + <% if (!twitch) { %> + + <% if (!instagram) { %> +
+ Nyo connections found ;_; +
+ <% } %> + <% } %> + <% } %> + + <% } %> <% } %> +
+ + +
+ +
+ +
+
+
Uploader
+ + + + + +
+ <% if (Array.isArray(inv_vid?.keywords)) { %> +
Tags
+
+
+ <% inv_vid.keywords.forEach(x => { %> + <% }) %> + + + + +
+ + + <% } %> + + +
+
Stats for 🤓
+ + Video id : <%=inv_vid.videoId%>
+ ImmersiveAmbientModecolor: <% if (lightOrDark(color) == "light") { %><%=color%> (color 1)<% } %><% if (lightOrDark(color) == "dark") { %> <%=color2%> (color 2) <% } %>
+ Video Format :<% if (!qua) { %> 22 (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz <% } %> + <% if (qua === "medium") { %> 18 (320p) openh264 (https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz <% } %> + + <% if (inv_vid.genre === "Music") { %> +
Audio Format: ALAC lossless (https://codeberg.org/Ashley/poke/src/branch/main/alac) Audio/ Flac
+ <% } %> + <% if (inv_vid.genre !== "Music") { %> +
Audio Format: Opus - Normalized audio
+ <% } %> + PokeTubeEncryptID: <%=sha384(inv_vid.videoId)%>
+ <% if (isvidious) { %> + + Proxy : <%= u.replace("https://","") %> - refresh the page to change the proxy location
+ <% } %> + <% if (!isvidious) { %> + + Proxy : tube-proxy.poketube.fun - refresh the page to change the proxy location
+ <% } %> + Date : <%- Date.now() %> - <%- useragent.os.replace("Linux", "GNU/Linux") %> on <%- useragent.browser %>
+ <% if (isvidious) { %> + + Mystery text : <%=btoa(inv_vid.videoId + " i " + " lov " + " u " + "mobile "+ u.replace("https://","") ) %>
+ <% } %> + <% if (!isvidious) { %> + + Mystery text : <%=btoa(inv_vid.videoId + " i " + " lov " + " u " + "tube-proxy.poketube.fun" ) %>
+ <% } %> + + 143 : true
+
+ +
+ +
+ +
+ + + +
+
+ +
+
+ +
+
+

+ +
+ +
+
+

M O A R +

+

+More Epic options owo~ +

+
+ +
+ Open On YouTubePrivacyGit + <% if (optout) { %> + <% } %> + <% if (!optout) { %> + • + Opt out of Metrics (Wut?) + <% } %> + <% if (lyrics && !r) { %> + <% if (optout) { %> +

Lyrics (Wow) + <% } %> + <% if (!optout) { %> +

Lyrics (Wow) + <% } %> + <% } %> + + <% } %> +

The Connection is secured with ECDSA with SHA-384 Signature Algorithm :3 Click here for encryption info
+ +

+ + + + + +
+
+ + + + <% if (lyrics) { %> + <% if (r === "f") { %> +
+

+ See the Recommended videos instead - Report wrong lyrics qwq +

+

+

+ Lyrics +

+

+ See how our lyrics search works:Here +

+

+

+ <%-lyrics%> +

+ + <% } %> + + <% } %> + +
+
+
+ +
+
+ +
+
+

+
+ + +
+
+

Comments

+

+ Top Comments :3 +

+
+ + <% if (inv != "Disabled") { %> + + <% if (!Array.isArray( inv.comments)) { %> +

+ Comments couldnt load ;-; (Report dis issue or refresh the god damn page lol) +

+ <% } %> + <% } %> + + <% if (inv == "Disabled") { %> + +

+ Comments are disabled +

+ <% } %> + + + <% if (Array.isArray( inv.comments)) { %> + + <% inv.comments.forEach(x =>{ %> + + +
+ +
+
+
+
+
+ <% if (!x.authorIsChannelOwner) { %> + +

+ + + <%- x.author%> <% if (x.verified) { %> + + + <% } %>

+ <%- x.publishedText %> +

+ + + + + +

<% } %> + + <% if (x.authorIsChannelOwner) { %> +

+ + + + <%- x.author%> <% if (x.verified) { %> + + + <% } %>

+ <%- x.publishedText %> +

+ + + + + <% } %> + + +

+ +
+

+ <%- x.contentHtml %> + + <%- convert(x.likeCount) %> | + + <% if(x.creatorHeart) { %> + + + + + <% } %> +

+
+
+
+
+ +
+ + <% }) %> + + <% } %> + + +
+ + + + + +
+
+ + + +
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + <% if (!optout) { %> + + <% } %> +
+ + + + + <% } %> + + <% } %> + +<% } catch (error) { %> + <%- error %> + <% } %> \ No newline at end of file