Last active
June 12, 2024 12:20
-
-
Save p3g4asus/787a3697790223c505bed400f00abe5e to your computer and use it in GitHub Desktop.
Start playing rai live channel automatically
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 Rai Auto Play | |
// @namespace https://github.com/p3g4asus | |
// @version 1.1 | |
// @description Start playing rai live channel automatically | |
// @author p3g4asus | |
// @match https://www.raiplay.it/dirette/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=raiplay.it | |
// @homepageURL https://gist.github.com/p3g4asus/787a3697790223c505bed400f00abe5e | |
// @updateURL https://gist.github.com/p3g4asus/787a3697790223c505bed400f00abe5e/raw/rai_live_autoplay.js | |
// @downloadURL https://gist.github.com/p3g4asus/787a3697790223c505bed400f00abe5e/raw/rai_live_autoplay.js | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setTimeout(() => { | |
let col = document.getElementsByClassName("leaf__player__image"); | |
console.log('col '+ col); | |
if (col && col.length) { | |
console.log('Clicking'); | |
col[0].click(); | |
} | |
}, 5000); | |
// Your code here... | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment