From 0ac770d844f7a642aeadb27fe83a43ee60f657db Mon Sep 17 00:00:00 2001 From: uh wot Date: Fri, 17 Jun 2022 01:56:23 +0200 Subject: [PATCH] removed more popup crap --- dzunlock.user.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/dzunlock.user.js b/dzunlock.user.js index e5b5302..74de154 100644 --- a/dzunlock.user.js +++ b/dzunlock.user.js @@ -3,7 +3,7 @@ // @namespace io.github.uhwot.dzunlock // @description enables deezer hifi features lol // @author uh wot -// @version 1.3.6 +// @version 1.3.7 // @license GPL-3.0-only // @homepageURL https://git.freezerapp.xyz/uhwot/dzunlock // @downloadURL https://git.freezerapp.xyz/uhwot/dzunlock/raw/branch/master/dzunlock.user.js @@ -147,6 +147,13 @@ unsafeWindow.fetch = (function (fetch) { log(json) + 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() + + delete json.results.MARKETING_PUSH + delete json.results.MARKETING_PUSH_DATA + resp = new Response(JSON.stringify(json), resp) } else if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=log.listen')) { const json = await resp.json()