i'm dumb
This commit is contained in:
parent
6c8d436650
commit
d9722038c5
|
@ -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.0.1
|
// @version 1.0.2
|
||||||
// @homepageURL https://git.freezer.life/uhwot/dzunlock
|
// @homepageURL https://git.freezer.life/uhwot/dzunlock
|
||||||
// @downloadURL https://git.freezer.life/uhwot/dzunlock/raw/branch/master/dzunlock.user.js
|
// @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
|
// @icon https://cdns-files.dzcdn.net/cache/images/common/favicon/favicon-96x96.852baf648e79894b668670e115e4a375.png
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
// @grant GM_setValue
|
// @grant GM_setValue
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
const debug = false
|
const debug = true
|
||||||
|
|
||||||
function log(...args) {
|
function log(...args) {
|
||||||
if (debug) {
|
if (debug) {
|
||||||
|
@ -185,7 +185,7 @@ async function renewAccessToken() {
|
||||||
unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
||||||
return function (...args) {
|
return function (...args) {
|
||||||
// needed for player to accept flac url responses
|
// 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"
|
args[0].data[i].FILESIZE_FLAC = "1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue