remove more upgrade popup stuff
This commit is contained in:
parent
970cfd2800
commit
a1bd43f08c
1 changed files with 9 additions and 2 deletions
|
@ -185,7 +185,7 @@ unsafeWindow.fetch = (function (fetch) {
|
||||||
let resp = await fetch(url, init)
|
let resp = await fetch(url, init)
|
||||||
|
|
||||||
if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=deezer.getUserData')) {
|
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
|
// removes upgrade popup stuff
|
||||||
json.results.USER.ENTRYPOINTS = {}
|
json.results.USER.ENTRYPOINTS = {}
|
||||||
|
@ -201,7 +201,7 @@ unsafeWindow.fetch = (function (fetch) {
|
||||||
|
|
||||||
resp = new Response(JSON.stringify(json), resp)
|
resp = new Response(JSON.stringify(json), resp)
|
||||||
} else if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=deezer.userMenu')) {
|
} 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
|
||||||
delete json.results.MARKETING_PUSH_DATA
|
delete json.results.MARKETING_PUSH_DATA
|
||||||
|
@ -214,6 +214,13 @@ unsafeWindow.fetch = (function (fetch) {
|
||||||
json.results = playerTokenPatch(json.results)
|
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)
|
resp = new Response(JSON.stringify(json), resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue