diff --git a/src/apps/com.baidu.input.ts b/src/apps/com.baidu.input.ts new file mode 100644 index 00000000..f53d8856 --- /dev/null +++ b/src/apps/com.baidu.input.ts @@ -0,0 +1,51 @@ +import { defineGkdApp } from '@gkd-kit/define'; +export default defineGkdApp({ + id: 'com.baidu.input', + name: '百度输入法', + groups: [ + { + key: 1, + name: '全屏广告-创作祝福弹窗', + desc: '点击关闭', + fastQuery: true, + matchTime: 10000, + resetMatch: 'app', + actionMaximum: 1, + rules: [ + { + activityIds: '.ImeAppMainActivity', + matches: '[id="android:id/content"] >2 [vid="button_close"]', + snapshotUrls: 'https://i.gkd.li/i/14179064', + }, + ], + }, + { + key: 2, + name: '局部广告-底部会员悬浮卡片', + fastQuery: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + key: 0, + position: { + left: 'width * 0.9269', + top: 'width * 0.113', + }, + activityIds: + 'com.baidu.input.layout.store.subshop.activity.SkinShopActivity', + matches: + '@[desc="开会员,全部皮肤免费用"] < [id="com.baidu.netdisk.samsung:id/iv_close"]', + snapshotUrls: 'https://i.gkd.li/i/12738388', + }, + { + key: 1, + activityIds: 'com.baidu.netdisk.ui.MainActivity', + matches: + 'View[childCount=2] > @TextView[text=""][clickable=true] + TextView[text="专属福利"][clickable=false]', + snapshotUrls: 'https://i.gkd.li/i/12738404', + }, + { + key: 2, + activityIds: 'com.baidu.netdisk.ui.MainActivity', + matches: + '@TextView[text=""][clickable=true] - TextView[text="去使用"][clickable=true]', + snapshotUrls: 'https://i.gkd.li/i/12738449', + }, + { + key: 3, + fastQuery: true, + activityIds: 'com.baidu.netdisk.ui.transfer.TransferListTabActivity', + matches: + '[vid="close_probationary_guide_layout"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/ab41b402-c4d0-439a-96f3-23029434aec4', + snapshotUrls: 'https://i.gkd.li/i/16423129', + }, + { + key: 4, + fastQuery: true, + activityIds: 'com.baidu.netdisk.ui.transfer.TransferListTabActivity', + matches: '[vid="youa_guide_close"][visibleToUser=true]', + exampleUrls: 'https://e.gkd.li/ab41b402-c4d0-439a-96f3-23029434aec4', + snapshotUrls: 'https://i.gkd.li/i/16423129', + }, + ], + }, + { + key: 5, + name: '评价提示', + fastQuery: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + activityIds: 'com.baidu.netdisk.ui.MainActivity', + matches: '[vid="view_score_style"] > [text="以后再说"]', + exampleUrls: + 'https://m.gkd.li/57941037/167a8392-23c8-4e84-a55f-4f91e7e560d8', + snapshotUrls: 'https://i.gkd.li/i/14893286', + }, + ], + }, + { + key: 6, + name: '权限提示-通知权限', + fastQuery: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + matches: '[vid="dialog_cancel"]', + exampleUrls: + 'https://m.gkd.li/57941037/06ae328b-f852-407b-83ab-ec295d41baa4', + snapshotUrls: 'https://i.gkd.li/i/14893280', + }, + ], + }, + { + key: 7, + name: '功能类-[上新【专辑】功能]弹窗', + desc: '点击关闭', + rules: [ + { + fastQuery: true, + activityIds: + 'com.baidu.netdisk.filealbum.ui.activity.FileAlbumListActivity', + matches: '[vid="add_widget_dialog_close"]', + exampleUrls: + 'https://m.gkd.li/57941037/256b5cad-a5ad-48e3-ba72-9c84447f2cac', + snapshotUrls: 'https://i.gkd.li/i/14893285', + }, + ], + }, + ], +});