Salesforce Refresh Reports

Refreshes Salesforce Reports

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Salesforce Refresh Reports
// @namespace   jamie-thompson.co.uk
// @description Refreshes Salesforce Reports
// @include     https://eu1.salesforce.com/*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @version     2
// @grant       none
// ==/UserScript==
this.$ = this.jQuery = jQuery.noConflict(true);
jQuery("#AppBodyHeader").hide();
jQuery(".dashBackLink").hide();
jQuery(".bPageFooter").hide();
jQuery(".links").hide();

function autorefresh() {
	document.getElementById('refreshButton').click();
	setTimeout(autorefresh, 30000);
}

autorefresh();