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

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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";
      }
}