@contactrico

Description du script

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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

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

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

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

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

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