Down Now Checker

Tampermonkey menu will show check down now for any site you are trying to reach

  1. // ==UserScript==
  2. // @name Down Now Checker
  3. // @namespace lundeen-bryan
  4. // @version 1.0.0
  5. // @description Tampermonkey menu will show check down now for any site you are trying to reach
  6. // @author lundeen-bryan
  7. // @match *://*/*
  8. // @icon https://downforeveryoneorjustme.com/favicon.ico
  9. // @grant GM_registerMenuCommand
  10. // @license GPL-2.0-or-later
  11. // ==/UserScript==
  12.  
  13. // Register menu command
  14. GM_registerMenuCommand("Check if Site is Down", getDomainName);
  15.  
  16. // Store the value of the hostname
  17. function getDomainName() {
  18. const userInput = prompt(
  19. "Please enter the hostname to check: (e.g., www.example.com"
  20. );
  21. if (userInput) {
  22. // Process the user input (e.g., validate, clean, etc.)
  23. const cleanedDomain = userInput.trim().toLowerCase();
  24. var redirect = "https://downforeveryoneorjustme.com/" + cleanedDomain;
  25. window.location = redirect;
  26. } else {
  27. alert("No input provided");
  28. }
  29. };