Skip to content

Instantly share code, notes, and snippets.

@surajitbasak109
Last active June 5, 2019 19:38
Show Gist options
  • Save surajitbasak109/2cb69ed45cd62a9321c2554a6fa67443 to your computer and use it in GitHub Desktop.
Save surajitbasak109/2cb69ed45cd62a9321c2554a6fa67443 to your computer and use it in GitHub Desktop.
// ==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