Skip to content

Commit

Permalink
feat: update cfmoto script
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyiyan authored Mar 19, 2024
1 parent 9d24456 commit 69ca1f4
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
21 changes: 21 additions & 0 deletions loon/plugin/cfmoto/cfmoto.plugin
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!name = 春风摩托
#!desc = 每日签到、会员任务、去广告,积分可兑换实物。
#!author = leiyiyan
#!homepage = https://github.com/leiyiyan/resource
#!icon = https://raw.githubusercontent.com/leiyiyan/resource/main/icons/cfmoto.png
#!date = 2024-3-19 13:48:20

[Script]
# 获取 Cookie
http-response ^https:\/\/c\.cfmoto\.com\/jv\/user\/user_info script-path=https://github.com/leiyiyan/resource/blob/main/script/cfmoto/cfmoto.js, requires-body=true, timeout=60, tag=春风摩托 Cookie
# 脚本任务
cron "0 7 * * *" script-path=https://github.com/leiyiyan/resource/blob/main/script/cfmoto/cfmoto.js, tag=春风摩托

[Rewrite]
# 开屏广告
^https:\/\/c\.cfmoto\.com\/cfmotoservermall\/app\/ad$ reject-dict
# 弹窗广告
^https:\/\/c\.cfmoto\.com\/cfmotoservermall\/app\/popwindow reject-dict

[MITM]
hostname = c.cfmoto.com
40 changes: 40 additions & 0 deletions script/cfmoto/cfmoto.js

Large diffs are not rendered by default.

30 changes: 30 additions & 0 deletions subscribe/leiyiyan.boxjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,36 @@
}
]
},
{
"id": "Leiyiyan_Cfmoto",
"name": "春风摩托",
"author": "@leiyiyan",
"repo": "",
"icons": [
"https://raw.githubusercontent.com/leiyiyan/resource/main/icons/cfmoto.png",
"https://raw.githubusercontent.com/leiyiyan/resource/main/icons/cfmoto.png"
],
"keys": [
"is_debug",
"cfmoto_data"
],
"settings": [
{
"id": "is_debug",
"name": "开启调试模式",
"val": false,
"type": "boolean",
"desc": "默认关闭"
},{
"id": "cfmoto_data",
"name": "春风摩托Cookie数据",
"val": null,
"type": "textarea",
"autoGrow": true,
"desc": "春风摩托Cookie数据"
}
]
},
{
"id": "Sliverkiss_Yrh",
"name": "悦然荟小程序",
Expand Down

0 comments on commit 69ca1f4

Please sign in to comment.