mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-07-26 12:08:15 +00:00
TEMPORARY DIAGNOSTICS: Upgrade DOM scraper to support Shadow DOM recursion
This commit is contained in:
+28
-13
@@ -1682,22 +1682,37 @@
|
||||
&& video.currentTime < 5 && video.readyState >= 1) {
|
||||
|
||||
// Match! Pause at start and report ready.
|
||||
|
||||
if (!video.paused) {
|
||||
|
||||
_setSuppress('paused');
|
||||
|
||||
video.pause();
|
||||
|
||||
}
|
||||
|
||||
stopLobbyPoll();
|
||||
|
||||
chrome.runtime.sendMessage({
|
||||
|
||||
type: 'EPISODE_READY_LOCAL',
|
||||
if (!video.paused) {
|
||||
|
||||
_setSuppress('paused');
|
||||
|
||||
video.pause();
|
||||
|
||||
}
|
||||
|
||||
stopLobbyPoll();
|
||||
|
||||
chrome.runtime.sendMessage({
|
||||
|
||||
type: 'EPISODE_READY_LOCAL',
|
||||
|
||||
payload: { title: currentTitle }
|
||||
|
||||
}).catch(() => {});
|
||||
|
||||
reportLog(`Episode lobby: Ready for "${currentTitle}"`, 'success');
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function startLobbyPoll(expectedTitle) {
|
||||
|
||||
stopLobbyPoll();
|
||||
|
||||
Reference in New Issue
Block a user