Created
November 8, 2018 21:29
-
-
Save lyatziv/79cc484661c3616c73f2a82c848849e1 to your computer and use it in GitHub Desktop.
Let The Music Play Pandora
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Play on and on | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Prevent nagging | |
// @author Lavi | |
// @run-at document-start | |
// @match https://www.pandora.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var imStillHere = () => { | |
// trigger a click on the 'keep listening button after n seconds' | |
var keepListeningBtn = document.querySelector('[data-qa="keep_listening_button"]') | |
if (keepListeningBtn){ | |
keepListeningBtn.click() | |
} | |
} | |
var interval = 1000 * 60 | |
setInterval(imStillHere, interval) | |
// Your code here... | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment