mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 16:54:43 +08:00
59 lines
1.8 KiB
TypeScript
59 lines
1.8 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.google.android.gm',
|
|
name: 'Gmail',
|
|
groups: [
|
|
{
|
|
enable: false,
|
|
key: 2,
|
|
name: '信息流广告',
|
|
rules: [
|
|
{
|
|
quickFind: true,
|
|
key: -1,
|
|
name: '点击广告扩展-1',
|
|
matches:
|
|
'[id="com.google.android.gm:id/button_chip_ad_teaser_info_icon"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13255698',
|
|
},
|
|
{
|
|
quickFind: true,
|
|
key: 0,
|
|
name: '点击广告扩展-2',
|
|
matches: '[id="com.google.android.gm:id/basic_ad_teaser_info_icon"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13255698',
|
|
},
|
|
{
|
|
preKeys: [-1, 0],
|
|
key: 1,
|
|
name: '广告中心-点击屏蔽',
|
|
matches: 'Button[text="屏蔽此广告"||text^="Block"]', // TODO quickFind 优化改进 Button[text="屏蔽此广告"] <<n [id="com.google.android.gm:id/my_ad_center_dialog"]
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13255700',
|
|
'https://i.gkd.li/import/13724271',
|
|
],
|
|
},
|
|
{
|
|
preKeys: 1,
|
|
key: 2,
|
|
name: '点击继续确认屏蔽',
|
|
matches: 'Button[text="继续"||text="Continue"]', // TODO Button[text="继续"] <<n [id="com.google.android.gm:id/design_bottom_sheet"]
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13255701',
|
|
'https://i.gkd.li/import/13724287',
|
|
],
|
|
},
|
|
{
|
|
preKeys: 2,
|
|
key: 3,
|
|
quickFind: true,
|
|
name: '关闭弹窗',
|
|
matches: '[id="com.google.android.gm:id/my_ad_center_close_icon"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13263279',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|