Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Updates for auto continue

About: Pandora Freemium

First the simple patch against 3.9.1 that continues playback on current Pandora:

--- pandorafreemium-3.9.1.js    2019-12-02 15:16:19.156863400 -0800
+++ pandorafreemium-updated.js  2019-12-02 15:22:35.741578300 -0800
@@ -449,7 +449,7 @@
 function extendPlayTime() {
     if (isSettingChecked('auto_continue')) {
         var playExtendedCount = GM_getValue('freemium_playExtendedCount', 0);
-        var $stillListeningEl = $('A.still_listening');
+        var $stillListeningEl = $('A.still_listening, [data-qa~=keep_listening_button]');
         if ($stillListeningEl.length) {
             if (playExtendedCount > -1 && playExtendedCount < 3) {
                 $stillListeningEl[0].click();

Lastly I suggest doing a whitespace review and cleanup: choose either tabs or spaces for indentation, not a blend thereof.

Thank you for the hard work!

Comments

Sign In or Register to comment.