fix for tampermonkey/greasemonkey
This commit is contained in:
parent
a46482057a
commit
de585b2ff8
|
@ -3,7 +3,7 @@
|
|||
// @namespace io.github.uhwot.dzunlock
|
||||
// @description enables deezer hifi features lol
|
||||
// @author uh wot
|
||||
// @version 1.1.4
|
||||
// @version 1.1.5
|
||||
// @license GPL-3.0-only
|
||||
// @homepageURL https://git.freezer.life/uhwot/dzunlock
|
||||
// @downloadURL https://git.freezer.life/uhwot/dzunlock/raw/branch/master/dzunlock.user.js
|
||||
|
@ -15,6 +15,7 @@
|
|||
// @require https://cdnjs.cloudflare.com/ajax/libs/aes-js/3.1.2/index.min.js
|
||||
// @grant GM_getValue
|
||||
// @grant GM_setValue
|
||||
// @run-at document-start
|
||||
// ==/UserScript==
|
||||
|
||||
const debug = false
|
||||
|
@ -140,6 +141,7 @@ async function renewAccessToken() {
|
|||
return access_token
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', (_) => {
|
||||
unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
||||
return async function (...args) {
|
||||
// don't get filesizes if account is hifi
|
||||
|
@ -200,6 +202,7 @@ unsafeWindow.dzPlayer.setTrackList = (function (old) {
|
|||
return old(...args)
|
||||
};
|
||||
})(unsafeWindow.dzPlayer.setTrackList);
|
||||
});
|
||||
|
||||
fetchIntercept.register({
|
||||
request: function (url, config) {
|
||||
|
|
Loading…
Reference in New Issue