From d9722038c5c44c705daaaea62f57f0a540d6e374 Mon Sep 17 00:00:00 2001 From: uh wot Date: Sun, 11 Jul 2021 18:25:17 +0200 Subject: [PATCH] i'm dumb --- dzunlock.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dzunlock.user.js b/dzunlock.user.js index 920ea93..e3cc542 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.0.1 +// @version 1.0.2 // @homepageURL https://git.freezer.life/uhwot/dzunlock // @downloadURL https://git.freezer.life/uhwot/dzunlock/raw/branch/master/dzunlock.user.js // @icon https://cdns-files.dzcdn.net/cache/images/common/favicon/favicon-96x96.852baf648e79894b668670e115e4a375.png @@ -16,7 +16,7 @@ // @grant GM_setValue // ==/UserScript== -const debug = false +const debug = true function log(...args) { if (debug) { @@ -185,7 +185,7 @@ async function renewAccessToken() { unsafeWindow.dzPlayer.setTrackList = (function (old) { return function (...args) { // needed for player to accept flac url responses - for (let i = args[0].data; i < args[0].data.length; i++) { + for (let i = 0; i < args[0].data.length; i++) { args[0].data[i].FILESIZE_FLAC = "1" }