1 Star 0 Fork 0

LiuQuanlin/工具管理

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
1.txt 14.52 KB
一键复制 编辑 原始数据 按行查看 历史
LiuQuanlin 提交于 2024-06-05 06:08 . RAP
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561
[
{
"type": "closeOtherPage",
"config": {}
},
{
"type": "waitTime",
"config": {
"timeoutType": "fixedValue",
"timeout": 20000,
"timeoutMin": 1000,
"timeoutMax": 300000,
"remark": ""
}
},
{
"type": "closePage",
"config": {}
},
{
"type": "newPage",
"config": {}
},
{
"type": "gotoUrl",
"config": {
"url": "chrome-extension://ifibfemgeogfhoebkmokieepdoobkbpo/options/options.html",
"timeout": 30000,
"remark": ""
}
},
{
"type": "javaScript",
"config": {
"params": [
"acc_id"
],
"content": "var info = {};\n\ntry {\n const url = 'http://localhost:8080/api/ads/getWalletByAdsId?adsId=' + acc_id;\n\n const response = await fetch(url);\n const data = await response.json();\n info = data.data.walletPrivateKey;\n\n } catch (error) {\n\n info = '请求失败!!'\n\n }\n\nreturn info;",
"variable": "walletPrivateKey",
"remark": ""
}
},
{
"type": "javaScript",
"config": {
"params": [
"acc_id"
],
"content": "var info = {};\n\ntry {\n const url ='http://localhost:8080/api/ads/getInitiaWalletInfoByAdsId?adsId=' + acc_id;\n\n const response = await fetch(url);\n const data = await response.json();\n info = data.data;\n\n } catch (error) {\n\n info = '请求失败!!'\n\n }\n\nreturn JSON.stringify(info);",
"variable": "data",
"remark": ""
}
},
{
"type": "javaScript",
"config": {
"params": [],
"content": "document.evaluate(\"/html/body/div/div[1]/table/tbody/tr[1]/td[2]/input\",document).iterateNext().value = \"\";\n\nreturn;",
"variable": "",
"remark": ""
}
},
{
"type": "toJson",
"config": {
"content": "data",
"variable": "walletData",
"remark": ""
}
},
{
"type": "extractKey",
"config": {
"content": "walletData",
"key": "2CaptchaApiKey",
"variable": "CaptchaApiKey",
"remark": "",
"_copyItemIndex": "0_9",
"_copyItemType": ""
}
},
{
"type": "extractKey",
"config": {
"content": "walletData",
"key": "initiaWalletKey",
"variable": "initiaWalletKey",
"remark": ""
}
},
{
"type": "inputContent",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div/div[1]/table/tbody/tr[1]/td[2]/input",
"serialType": "fixedValue",
"selectorType": "selector",
"element": "",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"intervals": 30,
"content": "",
"isRandom": "0",
"randomContent": "${CaptchaApiKey}",
"randomInputNum": {
"min": 0.1,
"max": 10
},
"remark": "",
"_copyItemIndex": "0_7",
"_copyItemType": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "CSS",
"selector": "#connect",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
},
{
"type": "newPage",
"config": {}
},
{
"type": "gotoUrl",
"config": {
"url": "chrome-extension://ffbceckpkpbcmgiaehlloocglmijnpmp/index.html#/",
"timeout": 30000,
"remark": ""
}
},
{
"type": "waitTime",
"config": {
"timeoutType": "fixedValue",
"timeout": 3000,
"timeoutMin": 1000,
"timeoutMax": 300000,
"remark": ""
}
},
{
"type": "getElement",
"config": {
"selectorRadio": "CSS",
"selector": "#root>div>form>div>div",
"serial": 1,
"selectorType": "selector",
"serialType": "fixedValue",
"serialMin": 1,
"serialMax": 50,
"element": "",
"type": "innerText",
"key": "",
"variable": "Hello",
"remark": ""
}
},
{
"type": "ifElse",
"config": {
"condition": [
"Hello"
],
"relation": "equal",
"result": "👋 Hello!",
"hiddenChildren": false,
"children": [
{
"type": "inputContent",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/form/div/div[2]/div/div/div/input",
"serialType": "fixedValue",
"selectorType": "selector",
"element": "",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"intervals": 30,
"content": "",
"isRandom": "0",
"randomContent": "${initiaWalletKey}",
"randomInputNum": {
"min": 0.1,
"max": 10
},
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/form/div/div[2]/div/button",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
}
],
"remark": "",
"other": [
{
"type": "waitForSelector",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/div[3]/a[3]",
"serial": 1,
"isShow": "1",
"timeout": 30000,
"variable": "",
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/div[3]/a[3]",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
},
{
"type": "waitForSelector",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[1]/div[1]/div/input",
"serial": 1,
"isShow": "1",
"timeout": 30000,
"variable": "",
"remark": ""
}
},
{
"type": "inputContent",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[1]/div[1]/div/input",
"serialType": "fixedValue",
"selectorType": "selector",
"element": "",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"intervals": 30,
"content": "",
"isRandom": "0",
"randomContent": "${initiaWalletKey}",
"randomInputNum": {
"min": 0.1,
"max": 10
},
"remark": ""
}
},
{
"type": "inputContent",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[1]/div[2]/div/input",
"serialType": "fixedValue",
"selectorType": "selector",
"element": "",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"intervals": 30,
"content": "",
"isRandom": "0",
"randomContent": "${initiaWalletKey}",
"randomInputNum": {
"min": 0.1,
"max": 10
},
"remark": "",
"_copyItemIndex": "0_7",
"_copyItemType": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[1]/div[3]/div/div[1]/input",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "//*[@id=\"root\"]/div/div/div[2]/form/div[2]/div/div/div/button[2]",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": "",
"_copyItemIndex": "0_9",
"_copyItemType": ""
}
},
{
"type": "waitForSelector",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[1]/div/input",
"serial": 1,
"isShow": "1",
"timeout": 30000,
"variable": "",
"remark": ""
}
},
{
"type": "inputContent",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[1]/div/input",
"serialType": "fixedValue",
"selectorType": "selector",
"element": "",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"intervals": 30,
"content": "",
"isRandom": "0",
"randomContent": "${walletPrivateKey}",
"randomInputNum": {
"min": 0.1,
"max": 10
},
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/div[2]/form/div[2]/div/div/div/button[2]",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
}
]
}
},
{
"type": "waitForSelector",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div[1]/div/a[2]/div/div[1]/button",
"serial": 1,
"isShow": "1",
"timeout": 30000,
"variable": "",
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div[1]/div/a[2]/div/div[1]/button",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "dblclick",
"remark": "",
"_copyItemIndex": "0_11",
"_copyItemType": ""
}
},
{
"type": "getClipboard",
"config": {
"variable": "Account1",
"remark": ""
}
},
{
"type": "javaScript",
"config": {
"params": [
"acc_id",
"Account1"
],
"content": "try {\n const url = \n'http://localhost:8080/api/ads/updateInitiaWalletInfoByAdsId?adsId=' + \nacc_id + '&initiaWalletAddress=' + Account1;\n\n const response = await fetch(url);\n const data = await response.json();\n\n } catch (error) {\n\n info = '请求失败!!'\n\n }\n\nreturn;",
"variable": "",
"remark": "",
"_copyItemIndex": "0_17_11",
"_copyItemType": "other_other"
}
},
{
"type": "newPage",
"config": {}
},
{
"type": "gotoUrl",
"config": {
"url": "https://faucet.testnet.initia.xyz/?address=${Account1}",
"timeout": 30000,
"remark": ""
}
},
{
"type": "waitTime",
"config": {
"timeoutType": "fixedValue",
"timeout": 20000,
"timeoutMin": 1000,
"timeoutMax": 300000,
"remark": "",
"_copyItemIndex": "0_21",
"_copyItemType": ""
}
},
{
"type": "waitForSelector",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/main/form/div/div[2]/div",
"serial": 1,
"isShow": "1",
"timeout": 30000,
"variable": "",
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/main/form/div/div[2]/div",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
},
{
"type": "waitTime",
"config": {
"timeoutType": "fixedValue",
"timeout": 60000,
"timeoutMin": 1000,
"timeoutMax": 300000,
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "CSS",
"selector": "#altcha_checkbox",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
},
{
"type": "waitTime",
"config": {
"timeoutType": "fixedValue",
"timeout": 60000,
"timeoutMin": 1000,
"timeoutMax": 300000,
"remark": ""
}
},
{
"type": "click",
"config": {
"selectorRadio": "XPath",
"selector": "/html/body/div[1]/div/div/main/form/div/div[4]/button/div",
"selectorType": "selector",
"element": "",
"serialType": "fixedValue",
"serial": 1,
"serialMin": 1,
"serialMax": 50,
"button": "left",
"type": "click",
"remark": ""
}
},
{
"type": "waitTime",
"config": {
"timeoutType": "fixedValue",
"timeout": 30000,
"timeoutMin": 1000,
"timeoutMax": 300000,
"remark": "",
"_copyItemIndex": "0_23",
"_copyItemType": ""
}
}
]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liuquanlin/tool-management.git
git@gitee.com:liuquanlin/tool-management.git
liuquanlin
tool-management
工具管理
master

搜索帮助