Auto-reload FilmOn streams at each timeout

This script allows you to auto-reload a FilmOn stream at each timeout

目前為 2023-02-06 提交的版本,檢視 最新版本

// ==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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址