From 5efeea5e4e7d07bc9f09566f540147a90315fb14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Nagy?= Date: Mon, 18 Mar 2024 01:12:27 +0100 Subject: [PATCH] Update script.js Removed remains of previous attempt to display correct bitrate in player --- script.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/script.js b/script.js index ca9c06c..3fe1500 100644 --- a/script.js +++ b/script.js @@ -2,8 +2,6 @@ const originalSetup = iBroadcastPlay.prototype.setup; iBroadcastPlay.prototype.setup = function() { originalSetup.call(this); - - // Redefine `ongettrackurl` within setup to change the replacement this.ongettrackurl = (trackId)=>{ if (trackId == undefined || trackId == null) { return null; @@ -15,10 +13,9 @@ iBroadcastPlay.prototype.setup = function() { } if (! cookies.origbitrate && music.user.premium) { playurl = playurl.replace(/128/, 320); - document.getElementsByClassName('mgr-player-bitrate').innerHTML = ' • 320Kbps"' } playurl += "?Expires=" + music.library.expires + "&Signature=" + music.user.token + "&platform=" + ib.client + "&version=1.1&user_id=" + music.user.id + "&file_id=" + trackId; ib.log("- play url: " + playurl, this); return (playurl); }; -}; \ No newline at end of file +};