Last active
June 5, 2019 19:38
-
-
Save surajitbasak109/2cb69ed45cd62a9321c2554a6fa67443 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 World Cup Match Live On Hotstar | |
// @namespace [email protected] | |
// @version 0.1 | |
// @description Watch Live World Cup Match on Hotstar | |
// @author Techcet Blog | |
// @match https://www.hotstar.com/sports/cricket/* | |
// @require http://code.jquery.com/jquery-3.3.1.min.js | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval(function() { | |
localStorage.clear(); | |
}, 0); | |
window.onload = function () { | |
if($('.header.white-header').length > 0) | |
{ | |
var topHeader = $('.header.white-header'); | |
topHeader.remove(); | |
} | |
} | |
// 5 Minutes = 30000 MS; | |
var timeToReloadInMilliSeconds = 60 * 5 * 1000; | |
setInterval(function() { | |
window.location.reload(); | |
}, timeToReloadInMilliSeconds); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment