From a1bd43f08cb74862f1d6b947e552e571a9c31056 Mon Sep 17 00:00:00 2001 From: uh wot Date: Sat, 19 Jul 2025 15:31:09 +0200 Subject: [PATCH] remove more upgrade popup stuff --- dzunlock.user.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dzunlock.user.js b/dzunlock.user.js index c2c3a0c..9c72a9e 100644 --- a/dzunlock.user.js +++ b/dzunlock.user.js @@ -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) }