FileCR Assistant Bypass (Improved)

An improved version of lem6ns's script that made fast download work.

اعتبارا من 12-11-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         FileCR Assistant Bypass (Improved)
// @namespace    xiakele
// @version      1.0
// @description  An improved version of lem6ns's script that made fast download work.
// @author       xiakele
// @license      Unlicense
// @match        *://filecr.com/*
// @icon         https://filecr.com/favicon.png
// ==/UserScript==

(function() {
    'use strict';
    let reloading = false;
    const versionInfo={
        "id": "ddgilliopjknmglnpkegbjpoilgachlm",
        "version": "9.9.9"
    };

    if (!document.cookie.includes("extensionIsInstalled")) {
        document.cookie = "extensionIsInstalled=1;";
    }
    window.addEventListener(
        "message",
        (event) => {
            const data={
                direction: 'from-content-script',
                responseFor: event.data.id,
                type: 'response'
            };
            if(event.data.action==="app.info"){
                console.log("Caught!");
                data.data=versionInfo;
                window.postMessage(data);
            }else if(event.data.action==="downloads.extractLink"){
                console.log("Caught again!");
                data.data=event.data.data.url;
                window.postMessage(data);
            }
        }
    );
    setInterval(() => {
        if (document.querySelector(".e-404") && !reloading) {
            reloading = true;
            location.reload();
        }
    }, 100)
})();