From ef2bfd061bb715e21b4e247f220adb6e18622911 Mon Sep 17 00:00:00 2001 From: Fishuke <66701659+fishuke@users.noreply.github.com> Date: Wed, 3 Feb 2021 15:47:17 +0300 Subject: [PATCH] Remove advertisement it will be added in futrher updates. --- ytmparty-plugin/src/content-script.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ytmparty-plugin/src/content-script.ts b/ytmparty-plugin/src/content-script.ts index 1366a96..0eb0c53 100644 --- a/ytmparty-plugin/src/content-script.ts +++ b/ytmparty-plugin/src/content-script.ts @@ -48,18 +48,18 @@ class ContentScript { } break; case 'loadedmetadata': - this.listenMediaSessionEvents(); + // this.listenMediaSessionEvents(); // @ts-ignore - if (navigator.mediaSession.metadata.artwork[0].src.includes('https://i.ytimg.com/')) { - chrome.runtime.sendMessage(this.extensionId, {event: 'advertisement'}); - } else { + // if (navigator.mediaSession.metadata.artwork[0].src.includes('https://i.ytimg.com/')) { + // chrome.runtime.sendMessage(this.extensionId, {event: 'advertisement'}); + // } else { this.listenMediaSessionEvents(); chrome.runtime.sendMessage(this.extensionId, { event: 'nextTrack', url: window.location.href.split('&')[0], duration: this.video.duration }); - } + // } break; } });