您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A script for interfacing with my Tree Frame UI.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/446506/1080926/Tree%20Frame.js
See config editor demo here
const $config = new $Config(
([node0, node1, node2]) => {
const config = {};
// ...
return config;
},
'STORAGE_KEY',
{
'children': [
{'label': 'node0'},
{'label': 'node1'},
{'label': 'node2'}
]
},
'Example Title'
);
function useConfig() {
const config = $config.get();
// ...
}
$config.init()
.catch(({message}) => {
window.alert(message);
})
.then(useConfig);
const button = document.createElement('button');
// ...
button.addEventListener('click', () => {
$config.edit()
.catch(({message}) => {
if (window.confirm(`${message}\n\nWould you like to erase your data?`)) {
$config.reset();
}
})
.finally(useConfig);
});
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址