mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37:19 +02:00
Add "disableIndexDbLogging" patch
This commit is contained in:
parent
e47a0521c8
commit
357ee51999
@ -7685,6 +7685,16 @@ class Patcher {
|
||||
return funcStr.replace(text, '.disableTelemetry=function(){return!0}');
|
||||
},
|
||||
|
||||
// Disable IndexDB logging
|
||||
disableIndexDbLogging(funcStr) {
|
||||
const text = 'async addLog(e,t=1e4){';
|
||||
if (!funcStr.includes(text)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return funcStr.replace(text, text + 'return;');
|
||||
},
|
||||
|
||||
// Set TV layout
|
||||
tvLayout: function(funcStr) {
|
||||
const text = '?"tv":"default"';
|
||||
@ -8011,6 +8021,7 @@ if (gamepadFound) {
|
||||
|
||||
getPref(Preferences.BLOCK_TRACKING) && [
|
||||
'blockWebRtcStatsCollector',
|
||||
'disableIndexDbLogging',
|
||||
'disableTrackEvent',
|
||||
],
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user