feat: reorganize popup tabs and add video debug diagnostics

This commit is contained in:
Timo
2026-04-22 11:27:16 +02:00
parent 51a5f43130
commit 1355022c35
4 changed files with 89 additions and 7 deletions
+18
View File
@@ -146,6 +146,24 @@
tryMediaAction(EVENTS.PLAY);
}
}
if (message.type === 'GET_VIDEO_STATE') {
const video = findVideo();
if (video) {
sendResponse({
paused: video.paused,
currentTime: video.currentTime,
duration: video.duration || 0,
readyState: video.readyState,
muted: video.muted,
playbackRate: video.playbackRate,
url: window.location.href,
id: video.id || 'none'
});
} else {
sendResponse({ error: 'No video found' });
}
}
});
// Detect native events