From bef95c576cb353d05d9eb7f924f5f909e3ad12d1 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Sun, 26 Nov 2023 22:12:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=B1=86=E7=93=A3):=20=E4=B8=8D=E5=88=86?= =?UTF-8?q?=E4=BA=AB/=E5=90=8C=E6=AD=A5=E4=BD=9C=E5=93=81=E7=9F=AD?= =?UTF-8?q?=E8=AF=84=20(#2532)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(豆瓣):不分享/同步作品短评 * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] close #2531 --- src/apps/com.douban.frodo.ts | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/src/apps/com.douban.frodo.ts b/src/apps/com.douban.frodo.ts index e1be9e18..d3396924 100644 --- a/src/apps/com.douban.frodo.ts +++ b/src/apps/com.douban.frodo.ts @@ -12,7 +12,7 @@ export default defineAppConfig({ matchTime: 10000, actionMaximum: 1, resetMatch: 'app', - rules: '[text^="跳过"][text.length<=10]', + rules: '[text*="跳过"][text.length<=10]', snapshotUrls: [ 'https://i.gkd.li/import/12505151', 'https://i.gkd.li/import/12505152', @@ -20,13 +20,30 @@ export default defineAppConfig({ ], }, { - key: 1, - name: '不同步到我的动态', - desc: '标记看过时,不同步到我的动态', enable: false, + key: 1, + name: '不分享/同步作品短评', + desc: '书影音-作品-状态-不分享/同步短评(5s后可手动)', + quickFind: true, + matchTime: 5000, + resetMatch: 'activity', activityIds: 'com.douban.frodo.subject.activity.RatingActivity', - rules: '[id="com.douban.frodo:id/check_status"][checked=true]', - snapshotUrls: ['https://i.gkd.li/import/12508777'], + rules: [ + { + key: 0, + name: '不分享到微信、微博', + matches: + '@LinearLayout > [id="com.douban.frodo:id/check_weibo_wechat"][visibleToUser=true][checked=true]', + snapshotUrls: ['https://i.gkd.li/import/12508777'], + }, + { + key: 1, + name: '不同步到动态', + matches: + '@LinearLayout > [id="com.douban.frodo:id/check_status"][visibleToUser=true][checked=true]', + snapshotUrls: ['https://i.gkd.li/import/12508777'], + }, + ], }, { key: 2,