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

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Custom - rapidgator.net and 1fichier.com Show Status in Tab's Title
// @namespace   Violentmonkey Scripts
// @match       https://rapidgator.net/*
// @match       https://1fichier.com/*
// @grant       none
// @version     1.1
// @author      KeratosAndro4590
// @license     MIT
// @description Makes failed links more obvious by a tab's title alone.
// ==/UserScript==

// alert(window.location.href);

// rapidgator
if(document.querySelector("body > div.container > div.overall > div > div > h2 > span"))
  {
    document.title = "no - RG";
  }

if(window.location.href.startsWith("https://rapidgator.net/file/" || window.location.href.startsWith("https://rapidgator.net/article/")))
  {
    if(document.querySelector("body > div.container > div.overall > div > div.main-block.wide > div.in > div.text-block.file-descr > div > p > a")){
      document.title = "yes - RG";
    }
    else if(document.href = "https://rapidgator.net/article/premium"){
      document.title = "no - RG";
    }
  } // 1fichier
else if(window.location.href.startsWith("https://1fichier.com")){
    if(document.querySelector("body > form > table > tbody > tr:nth-child(1) > td:nth-child(3)"))
      {
        document.title = "yes - 1fichier.com";
      }
    else
      {
        document.title = "no - 1fichier.com";
      }
}