青龙拉取常用京东脚本库

青龙拉取常用京东脚本库

说明

  • 更新一个整库脚本
1
ql repo <repourl> <path> <blacklist> <dependence> <branch>
  • 更新单个脚本文件
1
ql raw <fileurl>

下面是示例

推荐

  1. FAKER3
1
ql repo https://git.metauniverse-cn.com/https://github.com/shufflewzc/faker3.git "jd_|jx_|gua_|jddj_|jdCookie" "activity|backUp" "^jd[^_]|USER|function|utils|sendNotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql|JDSignValidator|magic|depend|h5sts" "main"
  1. KingRan
1
ql repo https://github.com/KingRan/KR.git "jd_|jx_|jdCookie" "activity|backUp" "^jd[^_]|USER|utils|function|sign|sendNotify|ql|JDJR"

``

整库

  • Unknown 备份托管等

    1. JDHelloWorld
    1
    ql repo https://github.com/JDHelloWorld/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon|enen|update|test" "^jd[^_]|USER|^TS|utils|notify|env|package|ken.js"
    1. he1pu(自动提交助力码-京喜工厂、种豆得豆、东东工厂、东东农场、健康社区、京喜财富岛、东东萌宠、闪购盲盒,随机从数据库中选取助力码互助)
    1
    ql repo https://github.com/he1pu/JDHelp.git "jd_|jx_|getJDCookie" "Coupon|update" "^jd[^_]|USER|^sign|^ZooFaker|utils"
    1. shufflewzc
    1
    ql repo https://github.com/shufflewzc/faker2.git "jd_|jx_|gua_|jddj_|getJDCookie" "activity|backUp" "^jd[^_]|USER|utils|^JS|^TS|^JDJRValidator_Pure|^ZooFaker|^sign"
    1. Aaron-lv
    1
    ql repo https://github.com/Aaron-lv/sync.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon" "^jd[^_]|USER|utils" "jd_scripts"
    1. panghu999(无维护)
    1
    ql repo https://github.com/panghu999/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon|jd_try|format_" "^jd[^_]|USER"
    1. chinnkarahoi(无维护)
    1
    ql repo https://github.com/chinnkarahoi/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon" "^jd[^_]|USER"
  • passerby-b

1
ql repo https://github.com/passerby-b/JDDJ.git "jddj_" "scf_test_event|jddj_fruit_code.js|jddj_getck.js|jd_|jddj_cookie"
  • curtinlv
1
ql repo https://github.com/curtinlv/JD-Script.git "jd_"
  • smiek2221
1
ql repo https://github.com/smiek2221/scripts.git "jd_|gua_" "" "^MovementFaker|^JDJRValidator|^ZooFaker|^sign" 
  • cdle
1
ql repo https://github.com/cdle/xdd.git "jd_" "disposable|expired|jdc"
  • ZCY01
1
ql repo https://github.com/ZCY01/daily_scripts.git "jd_"
  • whyour/hundun
1
ql repo https://github.com/whyour/hundun.git "quanx" "tokens|caiyun|didi|donate|fold|Env"
  • moposmall
1
ql repo https://github.com/moposmall/Script.git "Me"
  • Ariszy (Zhiyi-N)
1
ql repo https://github.com/Ariszy/Private-Script.git "JD"
  • photonmang(宠汪汪及兑换、点点券修复)
1
ql repo https://github.com/photonmang/quantumultX.git "JDscripts"
  • jiulan
1
ql repo https://github.com/jiulan/platypus.git "jd_|jx_" "" "overdue" "main"
  • star261
1
ql repo https://github.com/star261/jd.git "jd_|star" "" "code" "main"
  • Wenmoux
1
ql repo https://github.com/Wenmoux/scripts.git "other|jd" "" "" "wen"
  • Tsukasa007
1
ql repo https://github.com/Tsukasa007/my_script.git "jd_|jx_" "jdCookie|USER_AGENTS|sendNotify|backup" "" "master"

单脚本

名称之后标注的单脚本,若上面已拉取仓库的可以不拉,否则会重复拉取。这里适用于只拉取部分脚本使用

curtinlv

入会

1
ql raw https://raw.githubusercontent.com/curtinlv/JD-Script/main/OpenCard/jd_OpenCard.py

关注

1
ql raw https://raw.githubusercontent.com/curtinlv/JD-Script/main/getFollowGifts/jd_getFollowGift.py

chiupam

京喜工厂瓜分电力开团 ID

1
ql raw https://raw.githubusercontent.com/chiupam/JD_Diy/master/pys/activeId.py

Aaron-lv+

财富岛

1
ql raw https://raw.githubusercontent.com/Aaron-lv/sync/jd_scripts/jd_cfd.js

or

1
ql repo https://github.com/Aaron-lv/sync.git "jd_cfd" "" "" "jd_scripts"

Wenmoux+

口袋书店

1
ql raw https://raw.githubusercontent.com/Wenmoux/scripts/wen/jd/chinnkarahoi_jd_bookshop.js

or

1
ql repo https://github.com/Wenmoux/scripts.git "chinnkarahoi_jd_bookshop" "" "" "wen"

NobyDa

京东多合一签到脚本

1
ql raw https://raw.githubusercontent.com/NobyDa/Script/master/JD-DailyBonus/JD_DailyBonus.js

or

1
ql repo https://github.com/NobyDa/Script.git "JD-DailyBonus" "" "JD_DailyBonus" "master"

已删库存档

  • monk-coder
1
ql repo https://github.com/monk-dust/dust.git "i-chenzhe|normal|member|car" "backup"
  • hyzaw
1
ql repo https://github.com/hyzaw/scripts.git "ddo_"
  • zooPanda
1
ql repo https://github.com/zooPanda/zoo.git "zoo"
  • longzhuzhu
1
ql repo https://github.com/longzhuzhu/nianyu.git "qx"
  • panghu999/panghu
1
ql repo https://github.com/panghu999/panghu.git "jd_"

Extra.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
#!/usr/bin/env bash
## Mod: Build20210910V1
## 添加你需要重启自动执行的任意命令,比如 ql repo
## 安装node依赖使用 pnpm install -g xxx xxx(Build 20210728-002 及以上版本的 code.sh,可忽略)
## 安装python依赖使用 pip3 install xxx(Build 20210728-002 及以上版本的 code.sh,可忽略)


#------ 说明区 ------#
## 1. 拉取仓库
### (1)定时任务→添加定时→命令【ql extra】→定时规则【15 0-23/4 * * *】→运行
### (2)若运行过 1custom 一键脚本,点击运行即可
### (3)推荐配置:如下。自行在设置区填写编号
## 2. 安装依赖
### (1)默认不安装,因为 Build 20210728-002 及以上版本的 code.sh 自动检查修复依赖
### (2)若需要在此处使用,请在设置区设置
## 3. Ninja
### (1)默认启动并自动更新
### (2)⚠未修改容器映射的请勿运行,否则会出现青龙打不开或者设备死机等不良后果,映射参考 https://github.com/MoonBegonia/ninja#%E5%AE%B9%E5%99%A8%E5%86%85


#------ 设置区 ------#
## 1. 拉取仓库编号设置,默认 shufflewzc 仓库
CollectedRepo=(4) ##示例:CollectedRepo=(2 4 6)
OtherRepo=() ##示例:OtherRepo=(1 3)
## 2. 是否安装依赖和安装依赖包的名称设置
dependencies="r" ##yes为全部安装,no为不安装,p为安装package,r为安装requirement
package_name="@types/node axios canvas crypto-js date-fns dotenv fs jsdom png-js require ts-md5 tslib typescript"
requirement_name="cryptography~=3.2.1 json5 requests rsa"
## 3. Ninja 是否需要启动和更新设置
Ninja="on" ##up为更新,on为启动,down为不运行


#------ 编号区 ------#
:<<\EOF
一、集成仓库(Collected Repositories)
2-JDHelloWorld
3-he1pu
4-shufflewzc
6-Aaron-lv
7-yuannian1112
二、其他仓库(Other Repositories)
1-passerby-b
2-curtinlv
3-smiek2221
4-cdle
5-ZCY01
6-whyour/hundun
7-moposmall
8-Ariszy (Zhiyi-N)
9-photonmang
10-jiulan
12-star261
13-Wenmoux
14-Tsukasa007
15-ccwav
EOF


#------ 代码区 ------#
# 🌱拉取仓库
CR2(){
ql repo https://github.com/JDHelloWorld/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon|enen|update|test" "^jd[^_]|USER|^TS|utils|notify|env|package|ken.js"
}
CR3(){
ql repo https://github.com/he1pu/JDHelp.git "jd_|jx_|getJDCookie" "Coupon|update" "^jd[^_]|USER|^sign|^ZooFaker|utils"
}
CR4(){
ql repo https://github.com/shufflewzc/faker2.git "jd_|jx_|gua_|jddj_|getJDCookie" "activity|backUp|Coupon|update" "^jd[^_]|USER|utils|function|^JS|^TS|^JDJRValidator_Pure|^ZooFaker|^sign|ql"
}
CR6(){
ql repo https://github.com/Aaron-lv/sync.git "jd_|jx_|getJDCookie" "activity|backUp|Coupon" "^jd[^_]|USER|utils" "jd_scripts"
}
CR7(){
ql repo https://github.com/yuannian1112/jd_scripts.git "jd_|jx_|getJDCookie" "activity|backUp" "^jd[^_]|USER|utils"
}
for i in ${CollectedRepo[@]}; do
CR$i
sleep 10
done

OR1(){
ql repo https://github.com/passerby-b/JDDJ.git "jddj_" "scf_test_event|jddj_fruit_code.js|jddj_getck.js|jd_|jddj_cookie"
}
OR2(){
ql repo https://github.com/curtinlv/JD-Script.git "jd_"
}
OR3(){
ql repo https://github.com/smiek2221/scripts.git "jd_|gua_" "" "^MovementFaker|^JDJRValidator|^ZooFaker|^sign"
}
OR4(){
ql repo https://github.com/cdle/xdd.git "jd_" "disposable|expired|jdc"
}
OR5(){
ql repo https://github.com/ZCY01/daily_scripts.git "jd_"
}
OR6(){
ql repo https://github.com/whyour/hundun.git "quanx" "tokens|caiyun|didi|donate|fold|Env"
}
OR7(){
ql repo https://github.com/moposmall/Script.git "Me"
}
OR8(){
ql repo https://github.com/Ariszy/Private-Script.git "JD"
}
OR9(){
ql repo https://github.com/photonmang/quantumultX.git "JDscripts"
}
OR10(){
ql repo https://github.com/jiulan/platypus.git "jd_|jx_" "" "overdue" "main"
}
OR11(){
ql repo https://github.com/panghu999/panghu.git "jd_"
}
OR12(){
ql repo https://github.com/star261/jd.git "jd_|star" "" "code" "main"
}
OR13(){
ql repo https://github.com/Wenmoux/scripts.git "other|jd" "" "" "wen"
}
OR14(){
ql repo https://github.com/Tsukasa007/my_script.git "jd_|jx_" "jdCookie|USER_AGENTS|sendNotify|backup" "" "master"
}
OR15(){
ql repo https://github.com/ccwav/QLScript.git "jd_" "sendNotify.js" "ql.js"
}
for i in ${OtherRepo[@]}; do
OR$i
sleep 5
done


# 🍪Ninja
update_Ninja_normal(){
cd /ql/ninja/backend && git checkout . && git pull
pnpm install && pm2 start
cp sendNotify.js /ql/scripts/sendNotify.js
}

check_Ninja_normal(){
NOWTIME=$(date +%Y-%m-%d-%H-%M-%S)
i=0
while ((i<=0)); do
echo "扫描 Ninja 是否在线"
ps -fe|grep ninja|grep -v grep
if [ $? -ne 0 ]; then
i=0
echo $NOWTIME" 扫描结束!Ninja 掉线了不用担心马上重启!"
cd /ql
ps -ef|grep ninja|grep -v grep|awk '{print $1}'|xargs kill -9
cd /ql/ninja/backend
pnpm install
pm2 start
ps -fe|grep Daemon |grep -v grep
if [ $? -ne 1 ]; then
i=1
echo $NOWTIME" Ninja 重启完成!"
curl "https://api.telegram.org/bot$TG_BOT_TOKEN/sendMessage?chat_id=$TG_USER_ID&text=Ninja 已重启完成"
fi
else
i=1
echo $NOWTIME" 扫描结束!Ninja 还在!"
fi
done
}

if [ "$Ninja" = "up" ]; then
update_Ninja_normal &
elif [ "$Ninja" = "on" ]; then
check_Ninja_normal
fi


# 📦依赖
install_packages_normal(){
for i in $@; do
case $i in
canvas)
cd /ql/scripts
if [[ "$(echo $(npm ls $i) | grep ERR)" != "" ]]; then
npm uninstall $i
fi
if [[ "$(npm ls $i)" =~ (empty) ]]; then
apk add --no-cache build-base g++ cairo-dev pango-dev giflib-dev && npm i $i --prefix /ql/scripts --build-from-source
fi
;;
*)
if [[ "$(npm ls $i)" =~ $i ]]; then
npm uninstall $i
elif [[ "$(echo $(npm ls $i -g) | grep ERR)" != "" ]]; then
npm uninstall $i -g
fi
if [[ "$(npm ls $i -g)" =~ (empty) ]]; then
[[ $i = "typescript" ]] && npm i $i -g --force || npm i $i -g
fi
;;
esac
done
}

install_packages_force(){
for i in $@; do
case $i in
canvas)
cd /ql/scripts
if [[ "$(npm ls $i)" =~ $i && "$(echo $(npm ls $i) | grep ERR)" != "" ]]; then
npm uninstall $i
rm -rf /ql/scripts/node_modules/$i
rm -rf /usr/local/lib/node_modules/lodash/*
fi
if [[ "$(npm ls $i)" =~ (empty) ]]; then
apk add --no-cache build-base g++ cairo-dev pango-dev giflib-dev && npm i $i --prefix /ql/scripts --build-from-source --force
fi
;;
*)
cd /ql/scripts
if [[ "$(npm ls $i)" =~ $i ]]; then
npm uninstall $i
rm -rf /ql/scripts/node_modules/$i
rm -rf /usr/local/lib/node_modules/lodash/*
elif [[ "$(npm ls $i -g)" =~ $i && "$(echo $(npm ls $i -g) | grep ERR)" != "" ]]; then
npm uninstall $i -g
rm -rf /ql/scripts/node_modules/$i
rm -rf /usr/local/lib/node_modules/lodash/*
fi
if [[ "$(npm ls $i -g)" =~ (empty) ]]; then
npm i $i -g --force
fi
;;
esac
done
}

install_packages_all(){
install_packages_normal $package_name
for i in $package_name; do
install_packages_force $i
done
}

install_requirements(){
for i in $requirement_name; do
case $i in
cryptography~=3.2.1)
cd /ql/scripts
if [[ "$(pip3 freeze)" =~ "cryptography==3.2.1" ]]; then
echo "cryptography==3.2.1 已安装"
else
apk add --no-cache gcc libffi-dev musl-dev openssl-dev python3-dev && pip3 install cryptography~=3.2.1
fi
;;
*)
if [[ "$(pip3 freeze)" =~ $i ]]; then
echo "$i 已安装"
else
pip3 install $i
fi
esac
done
}

case $dependencies in
yes)
install_packages_all &
install_requirements &
;;
p)
install_packages_all &
;;
r)
install_requirements &
;;
esac


青龙拉取常用京东脚本库
https://hexo.psorai.eu.org/2023/06/06/青龙拉取常用京东脚本库/
Author
Sora
Posted on
June 6, 2023
Licensed under