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

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

اعتبارا من 17-12-2023. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل 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.0
// @author      Deanoman
// @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";
      }
}