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

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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";
      }
}