diff --git a/src/apps/com.ss.android.article.lite.ts b/src/apps/com.ss.android.article.lite.ts new file mode 100644 index 00000000..a3267dd3 --- /dev/null +++ b/src/apps/com.ss.android.article.lite.ts @@ -0,0 +1,81 @@ +import { defineAppConfig } from '../types'; + +export default defineAppConfig({ + id: 'com.ss.android.article.lite', + name: '头条搜索极速版', + groups: [ + { + enable: false, + key: 10, + name: '首页-红包弹窗', + activityIds: 'com.ss.android.article.lite.activity.SplashActivity', + rules: '@[desc="关闭"] + [text$="现金红包"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705414', + }, + { + key: 11, + name: '首页-右侧悬浮广告', + activityIds: 'com.ss.android.article.lite.activity.SplashActivity', + rules: + 'FrameLayout[id!=null] > @ImageView[id!=null][clickable=true] + ImageView[id!=null]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705452', + }, + { + enable: false, + key: 12, + name: '首页-你可能感兴趣的人', + activityIds: 'com.ss.android.article.lite.activity.SplashActivity', + rules: '[text="你可能感兴趣的人"] + [desc="关闭"]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705427', + }, + { + enable: false, + key: 20, + name: '任务页面-签到弹窗', + activityIds: 'com.ss.android.article.lite.activity.SplashActivity', + rules: [ + { + matches: + 'UIView[clickable=false] + LynxFlattenUI[clickable=true][visibleToUser=true]', + action: 'clickCenter', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705439', + }, + ], + }, + { + enable: false, + key: 21, + name: '任务页面-右侧悬浮红包', + activityIds: 'com.ss.android.article.lite.activity.SplashActivity', + rules: 'UIScrollView + UIView + UISvg', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705447', + }, + { + enable: false, + key: 22, + name: '任务页面-答题弹窗', + activityIds: 'com.ss.android.article.lite.activity.SplashActivity', + rules: [ + { + matches: + '[text^="答对"][text$="金币"] + FlattenUIImage[clickable=true]', + action: 'clickCenter', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705456', + }, + ], + }, + { + enable: false, + key: 30, + name: '搜索页面-搜索得金币弹窗', + activityIds: 'com.android.bytedance.search.SearchActivity', + rules: [ + { + matches: '[text^="搜索"][text$="金币"] + LynxFlattenUI + UISvg', + action: 'clickCenter', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12705468', + }, + ], + }, + ], +});