A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
rm handleChannelsUpdated
Christian Feidff92906b530
diff --git a/client/main.js b/client/main.jsindex 2e87864..0a211fd 100644--- a/client/main.js+++ b/client/main.js@@ -140,7 +140,6 @@ eventSource.onmessage = (message) => {})updateDownloadedVideos(allVideos)- handleChannelsUpdated(data.videos)window.videos = data.videos}if (data.type === 'summary' && data.videoId && data.summary) {@@ -328,16 +327,3 @@ function addChannelHandler(event) {loader.classList.remove('show')}}---function handleChannelsUpdated (videos) {- if (typeof videos === 'object' && !Array.isArray(videos)) {- const lastVideos = store.get(store.lastVideosKey)- for (const [name, vids] of Object.entries(videos)) {- if (lastVideos[name] != vids[0]?.id)- document.querySelector(`details[data-channel="${name}"]`)?.classList.add('has-new-videos')- lastVideos[name] = vids[0]?.id- }- store.set(store.lastVideosKey, lastVideos)- }-}