添加自定义UA。更新环境变量/secrets集合,添加自定义UA。BoxJs新增UA设置

This commit is contained in:
lxk0301
2020-11-23 10:03:04 +08:00
parent 9f9ebb64a5
commit 89c5002f33
2 changed files with 24 additions and 66 deletions

View File

@ -77,6 +77,7 @@
| Name | 归属 | 属性 | 说明 |
| :---------------------: | :----------: | --------- | ------------------------------------------------------------ |
| `JD_COOKIE` | 京东 | 必须 | 京东cookie,多个账号的cookie使用`&`隔开或者换行。具体获取参考[浏览器获取京东cookie教程](https://github.com/lxk0301/jd_scripts/blob/master/backUp/GetJdCookie.md) 或者 [插件获取京东cookie教程](https://github.com/lxk0301/jd_scripts/blob/master/backUp/GetJdCookie2.md) |
| `JD_USER_AGENT` | 京东 | 非必须 | 自定义此库里京东系列脚本的UserAgent不懂不知不会UserAgent的请不要随意填写内容。具体获取参考此[issue](https://github.com/lxk0301/jd_scripts/issues/127) |
| `JD_BEAN_STOP` | 京东 | 非必须 | 自定义延迟签到,单位毫秒. 默认分批并发无延迟. 延迟作用于每个签到接口, 如填入延迟则切换顺序签到(耗时较长),如需填写建议输入数字`1` |
| `JD_BEAN_SIGN_STOP_NOTIFY`| 京东 | 非必须 | `jd_bean_sign.js`脚本运行后不推送签到结果通知,默认推送,填`true`表示不发送通知 |
| `JD_BEAN_SIGN_NOTIFY_SIMPLE`| 京东 | 非必须 | `jd_bean_sign.js`脚本运行后推送签到结果简洁版通知,默认推送全部签到结果,填`true`表示推送简洁通知,[效果图](./icon/bean_sign_simple.jpg) |

View File

@ -33,6 +33,28 @@
"repo": "https://github.com/dompling/Script",
"script": "https://raw.githubusercontent.com/dompling/Script/master/jd/JD_extra.js"
},
{
"id": "JD_UA",
"name": "自定义京东脚本的UserAgent",
"keys": [
"JDUA"
],
"settings": [
{
"id": "JDUA",
"name": "自定义京东脚本的UserAgent",
"val": "",
"type": "text",
"desc": "不懂不知不会UserAgent的请不要随意填写内容"
}
],
"author": "@lxk0301",
"repo": "https://github.com/lxk0301/jd_scripts",
"icons": [
"https://raw.githubusercontent.com/Orz-3/mini/master/jd.png",
"https://raw.githubusercontent.com/Orz-3/task/master/jd.png"
]
},
{
"id": "jd_fruit",
"name": "东东农场",
@ -631,16 +653,7 @@
{
"id": "jd_SuperMarket",
"name": "京小超",
"keys": [
"jd_supermarket_name",
"jd_supermarket1",
"jd_supermarket2",
"jd_supermarket3",
"j2_supermarket_name",
"jd2_supermarket1",
"jd2_supermarket2",
"jd2_supermarket3"
],
"keys": [],
"settings": [
{
"id": "jdSuperMarketNotify",
@ -669,62 +682,6 @@
"val": false,
"type": "boolean",
"desc": "运行脚本消耗金币进行抽奖,默认抽奖"
},
{
"id": "jd_supermarket_name",
"name": "京东账号一昵称",
"val": "",
"type": "text",
"desc": "京东账号昵称,用于区分自己的京东账号(非必填,建议多个京东账号使用)"
},
{
"id": "jd_supermarket1",
"name": "京东账号一互助码1",
"val": "",
"type": "text",
"desc": "京小超商圈互助码"
},
{
"id": "jd_supermarket2",
"name": "京东账号一互助码2",
"val": "",
"type": "text",
"desc": "京小超商圈互助码"
},
{
"id": "jd_supermarket3",
"name": "京东账号一互助码3",
"val": "",
"type": "text",
"desc": "京小超商圈互助码"
},
{
"id": "jd2_supermarket_name",
"name": "京东账号二昵称",
"val": "",
"type": "text",
"desc": "京东账号昵称,用于区分自己的京东账号(非必填,建议多个京东账号使用)"
},
{
"id": "jd2_supermarket1",
"name": "京东账号二互助码1",
"val": "",
"type": "text",
"desc": "京小超商圈互助码"
},
{
"id": "jd2_supermarket2",
"name": "京东账号二互助码2",
"val": "",
"type": "text",
"desc": "京小超商圈互助码"
},
{
"id": "jd2_supermarket3",
"name": "京东账号二互助码3",
"val": "",
"type": "text",
"desc": "京小超商圈互助码"
}
],
"author": "@lxk0301",