FileCR Assistant Bypass (Improved)

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

Stan na 12-11-2023. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

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