Custom - rapidgator.net and 1fichier.com Show Status in Tab's Title

Makes failed links more obvious by a tab's title alone.

  1. // ==UserScript==
  2. // @name Custom - rapidgator.net and 1fichier.com Show Status in Tab's Title
  3. // @namespace Violentmonkey Scripts
  4. // @match https://rapidgator.net/*
  5. // @match https://1fichier.com/*
  6. // @grant none
  7. // @version 1.1
  8. // @author KeratosAndro4590
  9. // @license MIT
  10. // @description Makes failed links more obvious by a tab's title alone.
  11. // ==/UserScript==
  12.  
  13. // alert(window.location.href);
  14.  
  15. // rapidgator
  16. if(document.querySelector("body > div.container > div.overall > div > div > h2 > span"))
  17. {
  18. document.title = "no - RG";
  19. }
  20.  
  21. if(window.location.href.startsWith("https://rapidgator.net/file/" || window.location.href.startsWith("https://rapidgator.net/article/")))
  22. {
  23. if(document.querySelector("body > div.container > div.overall > div > div.main-block.wide > div.in > div.text-block.file-descr > div > p > a")){
  24. document.title = "yes - RG";
  25. }
  26. else if(document.href = "https://rapidgator.net/article/premium"){
  27. document.title = "no - RG";
  28. }
  29. } // 1fichier
  30. else if(window.location.href.startsWith("https://1fichier.com")){
  31. if(document.querySelector("body > form > table > tbody > tr:nth-child(1) > td:nth-child(3)"))
  32. {
  33. document.title = "yes - 1fichier.com";
  34. }
  35. else
  36. {
  37. document.title = "no - 1fichier.com";
  38. }
  39. }