mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Disable AAM
This commit is contained in:
parent
13323cce24
commit
8d559a53a8
@ -20,7 +20,7 @@ import { RemotePlay } from "@modules/remote-play";
|
||||
import { onHistoryChanged, patchHistoryMethod } from "@utils/history";
|
||||
import { VibrationManager } from "@modules/vibration-manager";
|
||||
import { overridePreloadState } from "@utils/preload-state";
|
||||
import { patchAudioContext, patchCanvasContext, patchMeControl, patchPointerLockApi, patchRtcCodecs, patchRtcPeerConnection, patchVideoApi } from "@utils/monkey-patches";
|
||||
import { disableAdobeAudienceManager, patchAudioContext, patchCanvasContext, patchMeControl, patchPointerLockApi, patchRtcCodecs, patchRtcPeerConnection, patchVideoApi } from "@utils/monkey-patches";
|
||||
import { AppInterface, STATES } from "@utils/global";
|
||||
import { injectStreamMenuButtons } from "@modules/stream/stream-ui";
|
||||
import { BxLogger } from "@utils/bx-logger";
|
||||
@ -313,7 +313,11 @@ function main() {
|
||||
AppInterface && patchPointerLockApi();
|
||||
|
||||
getPref(PrefKey.AUDIO_ENABLE_VOLUME_CONTROL) && patchAudioContext();
|
||||
getPref(PrefKey.BLOCK_TRACKING) && patchMeControl();
|
||||
|
||||
if (getPref(PrefKey.BLOCK_TRACKING)) {
|
||||
patchMeControl();
|
||||
disableAdobeAudienceManager();
|
||||
}
|
||||
|
||||
STATES.userAgent.capabilities.touch && TouchController.updateCustomList();
|
||||
overridePreloadState();
|
||||
|
@ -201,6 +201,14 @@ export function patchMeControl() {
|
||||
(window as any).MeControl = new Proxy(MeControl, MeControlHandler);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Disable Adobe Audience Manager (AAM)
|
||||
*/
|
||||
export function disableAdobeAudienceManager() {
|
||||
(window as any).adobe = Object.freeze({});
|
||||
}
|
||||
|
||||
/**
|
||||
* Use power-saving flags for touch control
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user