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 = `
Онлайн просмотр