优化 jd_unsubscribe.js脚本

This commit is contained in:
lxk0301
2020-11-22 22:30:09 +08:00
parent c3212403a5
commit 38db7a05ed

View File

@ -1,6 +1,6 @@
/*
脚本:取关京东店铺和商品
更新时间2020-11-03
更新时间2020-11-22
因种豆得豆和宠汪汪以及NobyDa大佬的京东签到脚本会关注店铺和商品故此脚本用来取消已关注的店铺和商品
默认每运行一次脚本取消关注10个商品10个店铺。可结合boxjs自定义取消多少个目前测试通过最大数量是一次性取消300个商品无异常大于300请自行测试建议尽量不要一次性全部取消以免出现问题
建议此脚本运行时间在 种豆得豆和宠汪汪脚本运行之后 再执行
@ -102,7 +102,7 @@ function unsubscribeGoods() {
console.log(`是否匹配::${item.commTitle.indexOf(stopGoods.replace(/\ufffc|\s*/g, ''))}`)
if (stopGoods && item.commTitle.indexOf(stopGoods.replace(/\ufffc|\s*/g, '')) === 0) {
if (stopGoods && item.commTitle.indexOf(stopGoods.replace(/\ufffc|\s*/g, '')) > -1) {
console.log(`匹配到了您设定的商品--${stopGoods},不在进行取消关注商品`)
break;
}