kevorigamer / Refresh Google Data Studio

// ==UserScript==
// @namespace https//openuserjs.org/users/kevorigamer
// @name     Refresh Google Data Studio
// @description Refresh Google Data Studio by 5 mins interval. Copy the script and update your first page title.
// @copyright 2018, kevorigamer (https//openuserjs.org/users/kevorigamer)
// @license MIT
// @version  1.0
// @include    https://datastudio.google.com/reporting/*
// @include    https://datastudio.google.com/u/*/reporting/*
// @exclude    https://datastudio.google.com/reporting/*/page/*/edit
// @exclude    https://datastudio.google.com/u/*/reporting/*/page/*/edit
// @require    https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.js
// @grant    none
// ==/UserScript==

// ==OpenUserJS==
// @author kevorigamer
// ==/OpenUserJS==

setInterval(function() {
    /*if(!$('#lego-fullscreen-button-in-reporting-app-header').hasClass('exit')){
        $('#lego-fullscreen-button-in-reporting-app-header').click();
    }*/
    $('.refreshIcon').parent().click();
    /*if(!$("span.navBtn.nextBtn").hasClass('fade')){
        $("span.navBtn.nextBtn").click();
    } else {
        $('page-item:nth-child(1)').children().click();
    }*/
    $('header-zone').hide();
}, 300000);