Greasy Fork is available in English.

$Config

Allows end users to configure scripts.

< Opinie na $Config

Pytanie/komentarz

§
Napisano: 28-05-2024

Hey, why do you have this in your code?


        const URL = {
            'SCHEME': 'https',
            'HOST': 's3.eu-west-2.amazonaws.com',
            'PATH': 'callumlatham.com/tree-frame-3/index.html',
            'PARAMS': `?id=${KEY_TREE}`,
        };
ctl2Autor
§
Napisano: 30-05-2024

Hi, it's the configuration UI website (an Amazon S3 page that I host). This script works by communicating with that website. It makes an iframe from it and passes info to it to define config structure & data.

I could probably make a version of the script that doesn't interface with an external website, but it'd be a pretty enormous, unreadable file. You might be able to do it yourself if you want to try. The website code's linked on this script's "Info" page at "Editor code available here".

Odpowiedz

Zaloguj się, by odpowiedzieć.