diff --git a/html/poketube.ejs b/html/poketube.ejs index defa0967..11d6a831 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1,397 +1,374 @@ <% try { %> -<% if (!isMobile) { %> +<% if (!isMobile) { %> + HEYOOOOOOOOOO!!!!!! + + poketube is the privacy first youtube front end ! fell free to pull request on codeberg.org! + + if you want to host an instance, see README.md + + license below: + + This Source Code Form is subject to the terms of the GNU General Public License: + + Copyright (C) 2021-2024 POKETUBE (https://codeberg.org/Ashley/poketube) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see https://www.gnu.org/licenses/. + +--> -<% if(secure) { %> -<% } %><% if(!secure) { %> -<% } %> - - +<% if(secure) { %><% } %><% if(!secure) { %><% } %> + + - - <% if (e === false) { %> - - <% } %> + <% if (e === false) { %> + + <% } %> <% if (!e) { %> - - - - - - - - - - <% } %> - - - - - <%=inv_vid.title%> | PokeTube - +@keyframes spin { + to { + transform: rotate(360deg); + } +} + + @@ -400,3401 +377,2853 @@ - <% if (k.Video.Channel.Name == "7clouds") { %> - - <% } %> +<% if (k.Video.Channel.Name == "7clouds") { %> + + <% } %> - - - + + + - <% if (inv_vid.videoId == "QrGrOK8oZG8") { %> + <% if (inv_vid.videoId == "QrGrOK8oZG8") { %> - - <% } %> + + <% } %> + + + + <% if(IsOldWindows) { %> + + + <% } %> + + + + - - <% } %> - - - - - <% if(shortsui) { %> - - <% } %> + // Append the style element to the document head + document.head.appendChild(styleElement); + } - <% if (inv_vid.author.endsWith(' - Topic')) { %> - + <% } %> - // Create a style element and set its content - const styleElement = document.createElement('style'); - styleElement.innerHTML = styles; + <% if (inv_vid.author.endsWith(' - Topic')) { %> + - <% } %> - <% if(dm) { %> + // Create a style element and set its content + const styleElement = document.createElement('style'); + styleElement.innerHTML = styles; + // Append the style element to the document head + document.head.appendChild(styleElement); + } - - <% } %> - - - - - - - - - - - - - -
-
-
-
-
- - - + + +
+ +
+ -
-
-
- <% if (k.Video.Channel.Name == "7clouds") { %> -
<% if (k.Video.Channel.Name !== "7clouds") { %>
<% if (inv_vid?.title !== k.Video.Title) { %> title="Non-Translated title : <%=inv_vid.title%>" - <% } %>> - <%-k.Video.Title.replace(/\/channel\//g, "/channel?id=").replace(/https:\/\/youtube.com/g, ""); %> - - -
- - <% if (inv_vid.genre === "Music") { %> - -
 Lossless
- <% } %> - - <% if (inv_vid.genre !== "Music") { %> - - Jump to - Connections - <% } %> - -
- - - - " %>"> - -
-
- <%=k.Video.Channel.Name%> - - <% if (inv_vid?.authorVerified) { %> -
- - -
- - <% } %> -
- - -
- <%= k.Video.Channel.subscriberCount.replace("subscribers", "Subs") %> -
- - -
- - -
- -
-
- - - -
- - -
- - - Download -
-
- - <% if (!video?.Channel.Name.endsWith(' - Topic')) { %> - <% if (!inv_vid.title.endsWith('IGNORE_THIS_PLEASE)')) { %> - <% if (support != undefined) { %> - - - - - - - <% }%> <% }%> - <% }%> - - <% if (support == undefined) { %> - - <% if (!video?.Channel.Name.endsWith(' - Topic')) { %> - <% if (!inv_vid.title.endsWith('IGNORE_THIS_PLEASE)')) { %> - - - - - - <% }%> <% }%> - <% }%> <% if (video?.Channel.Name.endsWith(' - Topic') || inv_vid.title.endsWith('Audio)')) { %> - - <% if (video?.Channel.Name.endsWith(' - Topic') || inv_vid.title.endsWith('IGNORE_THIS_PLEASE)')) { %> - -
- - - WIP! - - - <% }%> - <% }%> - - - - <% if (!video?.Channel.Name.endsWith(' - Topic')) { %> - <% if (!inv_vid.title.endsWith('IGNORE_THIS_PLEASE)')) { %> - <% if (inv.comments) { %> - - - <% }%> - <% }%> - <% }%> - - -
- -
-
- -
- -
- - -
- - <%=engagement.viewCount.toLocaleString()%> Views • <%=date%> • Click to toggle off description - - - <% if (String(inv_vid.descriptionHtml) != "undefined") { %> - <% if (String(inv_vid.descriptionHtml) != " ") { %> - <% if (String(inv_vid.descriptionHtml) != "

") { %> - -
- - - <%-String(channelurlfixer(inv_vid.descriptionHtml)).replace(/\n/g, "
").replace(/twitter\.com/g, "twitter.com").replace(/reddit\.com/g, "redlib.matthew.science") %> -
- <% } %> <% } %> <% } %> - - <% if (String(inv_vid.descriptionHtml) != "undefined") { %> - <% if (String(inv_vid.descriptionHtml) != " ") { %> - <% if (String(inv_vid.descriptionHtml) == "

") { %> - -
- - - <%-String(linkify(inv_vid.description)).replace(/\n/g, "
").replace(/twitter\.com/g, "twitter.com").replace(/reddit\.com/g, "redlib.matthew.science") %> -
- <% } %> <% } %> <% } %> - - - <% if (String(inv_vid.description) == " ") { %> - -

No Description On this Video ( sad innit :c )

- <% } %> - - - <% if (wiki.extract_html) { %> -
- From da web
- -
- - <%-wiki.extract_html%> - -

- - From wikipedia under CC-BY-SA 3.0 -

- - -

- <% } %> - - - - -
- Metadata And Engagement
- -

- - Views : <%=engagement.viewCount.toLocaleString()%>
- Genre: <%-inv_vid.genre %>
- Date of upload: <%=date%> ^^
-


- Rating : <%=engagement.rating.toLocaleString()%> - (<%=engagement.dislikes.toLocaleString()%>/<%=engagement.likes.toLocaleString()%> LTDR) -
- RYD date created : <%=engagement.dateCreated.toLocaleString()%>
- See in json - - - - - - - - - <% if (Array.isArray(inv_vid?.keywords)) { %> - -
- Tags
-
- - <% inv_vid?.keywords.forEach(x => { %> - - - <% }) %> -
- - - <% } %> - - - -
- - - <% if (inv_vid.genre === "Gaming") { %> - -
-
- Poke! Games Hub
- Snake - - Tic Tac Toe - - Sudoku - - Ping Pong - - -
- <% } %> - -
- -
- Connections
- - <% if (!twitter) { %> - <% if (!discord) { %> - <% if (!reddit) { %> - <% if (!twitch) { %> - - <% if (!instagram) { %> -
- Nyo connections found on the description ;_; - report a issue lol -
- <% } %> - <% } %> - <% } %> - - <% } %> <% } %> - - -
- <% if (twitter) { %> - - <% } %> - - <% if (discord) { %> - - <% } %> - - - <% if (twitch) { %> - - <% } %> - - - <% if (reddit) { %> - - <% } %> - - <% if (instagram) { %> - - <% } %> -
- -
- -

- - -
- - - -
- - -
- - -
-
- - -
- - <%=convert(engagement.likes)%> -
-
- <%=convert(engagement.dislikes)%> -
-
- - - Download - + + <% if (isvidious) { %> + <% if (!qua) { %> + + Open video in new tab + + + <% } %> + + <% if (qua === "medium") { %> + + + Open video in new tab + + + <% } %> + <% } %> + + <% if (!isvidious) { %> + + <% if (!qua) { %> + + Open video in new tab + - <% if (!video?.Channel.Name.endsWith(' - Topic')) { %> - <% if (!inv_vid.title.endsWith('Audio)')) { %> + <% } %> - - - Encryption - - <% }%><% }%> - - <% if (video?.Channel.Name.endsWith(' - Topic') || inv_vid.title.endsWith('Audio)')) { %> - - <% if (video?.Channel.Name.endsWith(' - Topic') || inv_vid.title.endsWith('Audio)')) { %> - - - Open In Music Player - - - <% }%> - <% }%> - -
+ <% if (qua === "medium") { %> + + Open video in new tab + + <% } %> + <% } %>
- -
- -
- -
- -
- - <% if(inv.error) { %> -

- <%- inv.error %>
Backtrace:
- - <%- inv.errorBacktrace %> - - Report this issue -

- <% } %> - - - <% if (inv.comments) { %> -
- -
- -
-
- YouTube Comments - - <% if (!isNaN(inv.commentCount)) { %> <%= inv.commentCount.toLocaleString() %> <% } else { %> 0 - <% } %> Comments -
- -

- Top Comments of this video!! :3 -

- +
+ Loop Video
- <% 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 %>

<% if (x.likeCount === 0) { %> | <% } else { %> - <%= convert(x.likeCount) %> | <% } %><% if(x.creatorHeart) { %> <% } %> -

-
-
-
-
-
<% }) %> -
- Go To Top -
-
- -
- - - <% } %> - - - <% if(!inv.comments) { %> -
- - <% } %> - - - <% if(inv.comments) { %> -
- - <% } %> - - - - - + <% if(secure) { %> + + + <% } %> + + + + + + <% } %> + <% if (isMobile) { %> + <% if (isMobile) { %> + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see https://www.gnu.org/licenses/. +--> - -<% if (e === false) { %> - - -<% } %> -<% if (!e) { %> + + <% if (e === false) { %> + + <% } %> + <% if (!e) { %> - + -<% } %> - + <% } %> <%=inv_vid.title%> | PokeTube Mobile - - - + + + -/https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css rel=stylesheet> + /https://site-assets.fontawesome.com/releases/v6.1.1/css/all.css rel=stylesheet> - -<% if (Array.isArray( !inv.comments)) { %> - - - -<% } %> - - - - - - -
- -
-
-
- <% if (lightOrDark(color) == "dark") { %> - -
-
-
- -
- - <% if (!qua) { %> - - - <% } %> - <% if (qua) { %> - - - <% } %> + + <% if (Array.isArray( !inv.comments)) { %> + + + + <% } %> + + + + + +
+ +
+
+
+ <% if (lightOrDark(color) == "dark") { %> -
+