Add "patchSetCurrentlyFocusedInteractable" patch

This commit is contained in:
redphx
2024-07-13 16:07:53 +07:00
parent b9e78f09d3
commit 18a8b8330c
4 changed files with 25 additions and 0 deletions

View File

@@ -186,6 +186,14 @@ window.addEventListener(BxEvent.STREAM_ERROR_PAGE, e => {
BxEvent.dispatch(window, BxEvent.STREAM_STOPPED);
});
window.addEventListener(BxEvent.NAVIGATION_FOCUS_CHANGED, e => {
const $elm = (e as any).element;
if (($elm.tagName === 'BUTTON' && $elm.className.includes('MruGameCard')) || ($elm.tagName === 'A' && $elm.className.includes('GameCard'))) {
console.dir($elm);
}
});
function unload() {
if (!STATES.isPlaying) {
return;