removed more popup crap

This commit is contained in:
uh wot 2022-06-17 01:56:23 +02:00
parent 7891c8a093
commit 0ac770d844
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 8 additions and 1 deletions

View File

@ -3,7 +3,7 @@
// @namespace io.github.uhwot.dzunlock // @namespace io.github.uhwot.dzunlock
// @description enables deezer hifi features lol // @description enables deezer hifi features lol
// @author uh wot // @author uh wot
// @version 1.3.6 // @version 1.3.7
// @license GPL-3.0-only // @license GPL-3.0-only
// @homepageURL https://git.freezerapp.xyz/uhwot/dzunlock // @homepageURL https://git.freezerapp.xyz/uhwot/dzunlock
// @downloadURL https://git.freezerapp.xyz/uhwot/dzunlock/raw/branch/master/dzunlock.user.js // @downloadURL https://git.freezerapp.xyz/uhwot/dzunlock/raw/branch/master/dzunlock.user.js
@ -147,6 +147,13 @@ unsafeWindow.fetch = (function (fetch) {
log(json) 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) resp = new Response(JSON.stringify(json), resp)
} else if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=log.listen')) { } else if (url.startsWith('https://www.deezer.com/ajax/gw-light.php?method=log.listen')) {
const json = await resp.json() const json = await resp.json()