Skip to content

Instantly share code, notes, and snippets.

@reynish
Last active April 12, 2017 14:13
Show Gist options
  • Save reynish/78635cdcbec3eecea5183561506bc49f to your computer and use it in GitHub Desktop.
Save reynish/78635cdcbec3eecea5183561506bc49f to your computer and use it in GitHub Desktop.
UserScript to reload JIRA
// ==UserScript==
// @name Jira list refresh
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author You
// @match https://issues-solace.uk.cambridgeconsultants.com/
// @grant none
// ==/UserScript==
(function() {
'use strict';
function updatePage() {
console.log('Updating page...')
var refreshBtn = document.querySelector('.refresh-table');
if (refreshBtn !== null && refreshBtn.click) refreshBtn.click();
}
setInterval(updatePage, 1 * 60 * 1000);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment