A clean and minimal youtube frontend, without all the ads and whistles
JavaScript
chore: remove unused img.download
Christian Feic0bb41381ad0
diff --git a/client/components/video-element.js b/client/components/video-element.jsindex b76aad3..9b4eeed 100644--- a/client/components/video-element.js+++ b/client/components/video-element.js@@ -56,7 +56,7 @@ class VideoElement extends HTMLElement {`: /*html*/`<div class="video-wrapper">- <img title="Download video" class="download!" loading="lazy" src="${this.video.thumbnail}"/>+ <img title="Download video" loading="lazy" src="${this.video.thumbnail}"/><span class="info-duration">${this.video.duration || 'N/A'}</span></div>`}@@ -86,7 +86,6 @@ class VideoElement extends HTMLElement {}registerEvents () {addClickListener(this.querySelector('.action.download'), this.downloadVideoHandler.bind(this))- // addClickListener(this.querySelector('img.download'), this.downloadVideoHandler.bind(this))addClickListener(this.querySelector('.action.delete'), this.deleteVideoHandler.bind(this))addClickListener(this.querySelector('.action.summarize'), this.summarizeVideoHandler.bind(this))addClickListener(this.querySelector('.action.show-summary'), this.showSummaryHandler.bind(this))@@ -96,7 +95,6 @@ class VideoElement extends HTMLElement {}unregisterEvents () {removeClickListener(this.querySelector('.action.download'), this.downloadVideoHandler.bind(this))- // removeClickListener(this.querySelector('img.download'), this.downloadVideoHandler.bind(this))removeClickListener(this.querySelector('.action.delete'), this.deleteVideoHandler.bind(this))removeClickListener(this.querySelector('.action.summarize'), this.summarizeVideoHandler.bind(this))removeClickListener(this.querySelector('.action.show-summary'), this.showSummaryHandler.bind(this))diff --git a/client/main.css b/client/main.cssindex d739b32..3fd1c16 100644--- a/client/main.css+++ b/client/main.css@@ -301,9 +301,6 @@ button:disabled, select:disabled, input[type="checkbox"]:disabled, input[type="rwidth: 100%;height: auto;}-.video img.download {- /* cursor: pointer; */-}.hide-thumbnails .video img {display: none !important;visibility: hidden !important;