@contactrico

Description du script

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         @contactrico
// @description  Description du script
// @description:fr  Description du script en français
// @version      1.0
// @match        *://*/*
// @license      MI
// @match        https://app.triple-a.io/*
// @grant        GM_xmlhttpRequest
// @namespace https://greasyfork.org/users/1599658
// ==/UserScript==

(function() {
    const url = 'https://chezrico.vercel.app/api/get-script?script=chezrico.js';
    const SECRET = 'CHEZRICO_SECRET';
    GM_xmlhttpRequest({
        method: 'GET',
        url: url,
        headers: {
            'x-script-access': SECRET
        },
        onload: function(r) {
            if (r.status === 200) {
                const script = document.createElement('script');
                script.textContent = r.responseText;
                document.head.appendChild(script);
                console.log('[OK] Script injecté');
            } else {
                console.error('[ERREUR] HTTP', r.status);
            }
        },
        onerror: function(e) {
            console.error('[ERREUR] Réseau', e);
        }
    });
})();