PowerBi Refresh Dataset

Refresh the dataset every 3 minutes

当前为 2016-10-18 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name PowerBi Refresh Dataset
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0.0.22
  5. // @description Refresh the dataset every 3 minutes
  6. // @author Tuval
  7. // @match https://app.powerbi.com/featureddashboard
  8. // @grant none
  9. // @require http://code.jquery.com/jquery-latest.js
  10. // ==/UserScript==
  11.  
  12. (function refresh () {
  13. 'use strict';
  14. setInterval(function() {
  15. $timeout(function() {
  16. angular.element('.expanderBtn slideFadeIn').triggerHandler('click');
  17. });
  18. },3 * 1000);
  19.  
  20. // Using Angular Extend
  21. angular.extend($scope, {
  22. refresh: refresh
  23. });
  24.  
  25. });