Greasy Fork is available in English.

Refresh Down Now For Everyone

If on the downforeveryoneorjustme.com then it will refresh your query every 5 minutes. Alerts user if checked 5 times.

  1. // ==UserScript==
  2. // @name Refresh Down Now For Everyone
  3. // @namespace lundeen-bryan
  4. // @version 1.0.0
  5. // @description If on the downforeveryoneorjustme.com then it will refresh your query every 5 minutes. Alerts user if checked 5 times.
  6. // @author lundeen-bryan
  7. // @match https://downforeveryoneorjustme.com/*
  8. // @icon https://downforeveryoneorjustme.com/favicon.ico
  9. // @license GPL-2.0-or-later
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. // Set the refresh interval (in milliseconds)
  15. const refreshInterval = 5 * 60 * 1000; // 5 minutes
  16. const maxLoops = 5; // Number of loops before sending an alert
  17. let loopCount = 0;
  18.  
  19. // Function to reload the page
  20. function refreshPage() {
  21. location.reload();
  22. loopCount++;
  23.  
  24. // Check if the maximum number of loops has been reached
  25. if (loopCount === maxLoops) {
  26. sendAlert();
  27. }
  28. }
  29.  
  30. // Function to send an alert
  31. function sendAlert() {
  32. // Replace with your desired alert mechanism (e.g., browser notification, console.log, etc.)
  33. console.log("Checked for almost 30 minutes. Consider taking a break!");
  34. }
  35.  
  36. // Schedule the refresh
  37. setInterval(refreshPage, refreshInterval);
  38. })();