From d0ff20e311d4baa07ee1ed5e09a7c42833d5b71b Mon Sep 17 00:00:00 2001 From: Alex Kozack Date: Fri, 13 Sep 2019 12:04:06 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0:=20ID?= =?UTF-8?q?=20Firefox=20=D0=BD=D0=B5=20=D1=8F=D0=B2=D0=BB=D1=8F=D0=B5?= =?UTF-8?q?=D1=82=D1=81=D1=8F=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=BD=D1=8B?= =?UTF-8?q?=D0=BC=20=D1=81=D0=B5=D0=BB=D0=B5=D0=BA=D1=82=D0=BE=D1=80=D0=BE?= =?UTF-8?q?=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #5 --- src/content-scripts/shikimori-watch-button.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content-scripts/shikimori-watch-button.ts b/src/content-scripts/shikimori-watch-button.ts index 7f052d4f..9f29115c 100644 --- a/src/content-scripts/shikimori-watch-button.ts +++ b/src/content-scripts/shikimori-watch-button.ts @@ -18,7 +18,7 @@ async function main() { /** @type {HTMLAnchorElement} */ let WatchOnlineButton = document .body - .querySelector(`#${chrome.runtime.id} #watch-online-button`); + .querySelector(`#play-shiki-online #watch-online-button`); if (!infoSection || WatchOnlineButton) { return; @@ -136,7 +136,7 @@ function createButton(infoSection: HTMLElement): HTMLAnchorElement { const WatchButtonSection = document.createElement('section'); WatchButtonSection.classList.add('block'); WatchButtonSection.classList.add('watch-online-block'); - WatchButtonSection.id = chrome.runtime.id; + WatchButtonSection.id = 'play-shiki-online'; WatchButtonSection.innerHTML = `
Онлайн просмотр