$Config

Allows users to configure scripts

< 脚本$Config的反馈

提问/评论

§
发表于:2024-05-28

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}`,
        };
ctl2作者
§
发表于:2024-05-30

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".

ctl2作者
§
发表于:2024-06-29

I checked GreasyFork's rules on external code, turns out I was probably violating them :) The UI code is now included in the script

§
发表于:2024-07-01

Awesome. Thanks for the follow up. I had not gotten around to pulling the form to do things with it yet. Swamped with projects.

发表回复

登录(不可用)以发表回复。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址