This commit is contained in:
uh wot 2021-07-11 18:25:17 +02:00
parent 6c8d436650
commit d9722038c5
Signed by: uhwot
GPG Key ID: CB2454984587B781
1 changed files with 3 additions and 3 deletions

View File

@ -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"
}