eparaksts refresher

Novērš eparaksts.lv izlogošanos dīkstāves gadījumos

  1. // ==UserScript==
  2. // @name eparaksts refresher
  3. // @version 1.0
  4. // @description Novērš eparaksts.lv izlogošanos dīkstāves gadījumos
  5. // @author ExpIorer
  6. // @match https://www.eparaksts.lv/*
  7. // @grant none
  8. // @namespace https://greasyfork.org/users/28033
  9. // ==/UserScript==
  10.  
  11.  
  12. function httpGet(theUrl)
  13. {
  14. var xmlHttp = null;
  15. xmlHttp = new XMLHttpRequest();
  16. xmlHttp.open( "GET", theUrl, true );
  17. xmlHttp.send( null );
  18. }
  19.  
  20.  
  21. {
  22. setTimeout(parladet2, 60*1000*5);
  23. }
  24. function parladet2()
  25. {
  26. var r=Math.random();
  27. httpGet('https://www.eparaksts.lv/lv/?r='+r);
  28. setTimeout(parladet2, 50*1000*5);
  29. }