This script allows you to auto-reload a FilmOn stream at each timeout
当前为
// ==UserScript==
// @name Auto-reload FilmOn streams at each timeout
// @namespace https://github.com/GavinBrelstaff
// @description This script allows you to auto-reload a FilmOn stream at each timeout
// @match http://www.filmon.com/channel/*
// @version 1.0
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// ==/UserScript==
setInterval(function() // Polling
{
var el = document.querySelector( 'div.tvg-count.countdown[secs]' );
if( el )
{
var secs = el.getAttribute('secs');
console.log('secs: ' + secs );
if( secs < 6 ) location.href = location.href; // reload the page
}
}, 1000); // every second