remove more upgrade popup stuff

This commit is contained in:
uh wot 2025-07-19 15:31:09 +02:00
parent 970cfd2800
commit a1bd43f08c
Signed by: uhwot
GPG key ID: CB2454984587B781

View file

@ -185,7 +185,7 @@ unsafeWindow.fetch = (function (fetch) {
let resp = await fetch(url, init)
if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=deezer.getUserData')) {
let json = await resp.json()
const json = await resp.json()
// removes upgrade popup stuff
json.results.USER.ENTRYPOINTS = {}
@ -201,7 +201,7 @@ unsafeWindow.fetch = (function (fetch) {
resp = new Response(JSON.stringify(json), resp)
} else if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=deezer.userMenu')) {
let json = await resp.json()
const json = await resp.json()
delete json.results.MARKETING_PUSH
delete json.results.MARKETING_PUSH_DATA
@ -214,6 +214,13 @@ unsafeWindow.fetch = (function (fetch) {
json.results = playerTokenPatch(json.results)
}
resp = new Response(JSON.stringify(json), resp)
} else if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=appcusto.getData')) {
const json = await resp.json()
// removes more upgrade popup stuff
json.results.events = {}
resp = new Response(JSON.stringify(json), resp)
}