Skip to content

Instantly share code, notes, and snippets.

@ni-ka
Created December 13, 2014 00:14
Show Gist options
  • Save ni-ka/5bc89f8fba85e7b3c7d9 to your computer and use it in GitHub Desktop.
Save ni-ka/5bc89f8fba85e7b3c7d9 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name My Fancy New Userscript
// @namespace http://your.homepage/
// @version 0.1
// @description enter something useful
// @author You
// @match http://tableau1.eocng.org/views/CallCenterLive/*
// @grant none
// ==/UserScript==
var refresh = function() {
var clickEvent = document.createEvent ("HTMLEvents");
clickEvent.initEvent ("click", true, true);
$("span.tab-icon-refresh")[0].dispatchEvent (clickEvent);
setTimeout(refresh, 15000);
};
setTimeout(refresh, 15000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment