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:
Timo
2026-07-02 14:18:50 +02:00
parent a9f5c0b9bf
commit 51da169d69
4 changed files with 2 additions and 104 deletions
-36
View File
@@ -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