mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-09-01 05:29:22 +00:00
Remove temporary Media Session interceptor and Video Event Log diagnostics
Clean up the exploratory Disney+ diagnostics now that the Shadow DOM timeline/seek integration is in place: - Remove Proposal 1 (Media Session interceptor): the background.js interceptor injection and the content.js message listener capturing __koalaMediaSessionCapture, plus the now-unused mediaSessionPosition reporting in content.js and popup.js. - Remove Proposal 3 (Video Event Log): videoEventsLog, logVideoEvent(), the per-video event logging listeners, and the popup.html/popup.js UI. - Keep Proposal 2 (DOM timestamp scraper) for ongoing diagnostics. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -62,7 +62,6 @@
|
||||
|
||||
// Suppresses native event reporting after a programmatic action.
|
||||
|
||||
// Each entry is a per-type timer (key = 'playing'|'paused'|'seek').
|
||||
// Each entry is a per-type timer (key = 'playing'|'paused'|'seek').
|
||||
|
||||
// While a timer exists, matching native events are consumed and not relayed.
|
||||
@@ -1445,9 +1444,7 @@
|
||||
|
||||
function applyAudioSettings(videoEl, settings) {
|
||||
|
||||
const mergedSettings = mergeAudioSettings(settings);
|
||||
const mergedSettings = mergeAudioSettings(settings);
|
||||
if (!mergedSettings.enabled || !mergedSettings.compressor?.enabled) {
|
||||
|
||||
if (!mergedSettings.enabled || !mergedSettings.compressor?.enabled) {
|
||||
|
||||
@@ -1459,9 +1456,7 @@
|
||||
|
||||
|
||||
|
||||
if (!chain) return;
|
||||
const chain = setupAudioChain(videoEl);
|
||||
|
||||
|
||||
if (!chain) return;
|
||||
|
||||
@@ -1752,21 +1747,6 @@
|
||||
checkAndReportLobbyReady(expectedTitle);
|
||||
|
||||
}, 2000);
|
||||
|
||||
|
||||
|
||||
function stopLobbyPoll() {
|
||||
|
||||
_pendingLobbyTitle = null;
|
||||
|
||||
if (lobbyPollTimer) {
|
||||
|
||||
clearInterval(lobbyPollTimer);
|
||||
|
||||
lobbyPollTimer = null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1782,14 +1762,6 @@
|
||||
|
||||
clearInterval(lobbyPollTimer);
|
||||
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
function getActivePlayerActionFix() {
|
||||
return getPlayerActionFixes().find(fix => matchesPlayerUrls(fix.urls)) || null;
|
||||
}
|
||||
|
||||
lobbyPollTimer = null;
|
||||
|
||||
}
|
||||
@@ -1947,14 +1919,6 @@
|
||||
}
|
||||
|
||||
|
||||
if (video) applyAudioSettings(video, _audioSettings);
|
||||
|
||||
sendResponse({ ok: true });
|
||||
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Listen for commands from background.js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user