Расширение: popup-окно вместо Side Panel - #3
Draft
PaperPit wants to merge 7 commits into
Draft
Conversation
Load sidepanel.js as a classic IIFE next to the HTML, keep video state in chrome.storage.local, and surface boot errors in the panel instead of failing silently before the first paint. Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Object.entries(null) threw before first paint; coerce attrs to {}.
Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Removes remaining el(tag, null, ...) call sites that crashed Object.entries before first paint when an older build was still loaded. Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Replace Chrome Side Panel with chrome.windows popup so YouTube is not pushed aside; reuse or focus an existing panel window on repeat clicks. Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Replace the floating popup window (which opened as a full tab) with a fixed overlay panel on YouTube so the page does not shift and no new tab/window is created. Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
YouTube CSP blocks chrome-extension iframes, so the overlay stayed empty. Bundle the panel UI into the content script and render it in a shadow root. Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
Re-inject the YouTube content script via chrome.scripting when the tab still has a stale script, and show a refresh hint if the context is dead. Co-authored-by: PaperPit <PaperPit@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Что сделано
Вместо Chrome Side Panel (сдвигает YouTube влево) UI открывается отдельным popup-окном поверх браузера через
chrome.windows.create. Повторный клик фокусирует уже открытое окно.Также включает фиксы пустой панели /
el(null)(версия 1.0.4), т.к. ветка базируется наcursor/fix-sidepanel-blank-8cec.Связанный Issue
нет (запрос после #1 / #2)
Test plan
npm run ext:buildЧеклист
sidePanelpermission убран из manifest