mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 00:05:19 +08:00
693 lines
23 KiB
TypeScript
693 lines
23 KiB
TypeScript
import { defineGkdApp } from '@gkd-kit/define';
|
||
|
||
export default defineGkdApp({
|
||
id: 'com.tencent.mm',
|
||
name: '微信',
|
||
groups: [
|
||
{
|
||
key: 0,
|
||
name: '分段广告-朋友圈广告',
|
||
desc: '点击卡片广告右上角,直接关闭/出现菜单,确认关闭',
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
|
||
'com.tencent.mm.plugin.sns.ui.improve.ImproveSnsTimelineUI',
|
||
'com.tencent.mm.plugin.profile.ui.ContactInfoUI',
|
||
],
|
||
rules: [
|
||
{
|
||
key: -1,
|
||
fastQuery: true,
|
||
matches:
|
||
'@LinearLayout[clickable=true] > [text="广告" || text="廣告" || text="Sponsored"][visibleToUser=true]',
|
||
exampleUrls: 'https://e.gkd.li/d1941064-d4e9-4bb2-99ab-ba30e0ce8126',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/13000395',
|
||
'https://i.gkd.li/i/12905837',
|
||
'https://i.gkd.li/i/13791200',
|
||
'https://i.gkd.li/i/16568338',
|
||
],
|
||
},
|
||
{
|
||
key: 0,
|
||
matches:
|
||
'RelativeLayout >5 LinearLayout[childCount=2] > TextView[text!=null] + LinearLayout[visibleToUser=true][clickable=true][childCount=0]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14647413',
|
||
},
|
||
{
|
||
key: 1,
|
||
fastQuery: true,
|
||
position: {
|
||
left: 'width * 0.9223',
|
||
top: 'width * 0.0349',
|
||
},
|
||
matches: '@LinearLayout >2 [text="广告"][visibleToUser=false]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/14783802',
|
||
'https://i.gkd.li/i/15531539',
|
||
],
|
||
},
|
||
|
||
// 预留key
|
||
// 第二段
|
||
{
|
||
preKeys: [-1, 0, 1],
|
||
key: 25,
|
||
name: '点击[关闭]',
|
||
fastQuery: true,
|
||
matches: '[text^="关闭"][clickable=true]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12907642', // text="关闭该广告"
|
||
'https://i.gkd.li/i/13926578', // text="关闭广告"
|
||
'https://i.gkd.li/i/15531274',
|
||
],
|
||
},
|
||
{
|
||
preKeys: [-1, 0],
|
||
key: 26,
|
||
name: '点击[Close]',
|
||
fastQuery: true,
|
||
matches: '[text*="Close"][clickable=true]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/14207480',
|
||
'https://i.gkd.li/i/15137016',
|
||
],
|
||
},
|
||
{
|
||
preKeys: [-1, 0],
|
||
key: 27,
|
||
name: '点击[關閉此廣告]',
|
||
fastQuery: true,
|
||
matches: '[text="關閉此廣告"][clickable=true]',
|
||
snapshotUrls: 'https://i.gkd.li/i/13791202',
|
||
},
|
||
{
|
||
preKeys: [-1, 0, 1],
|
||
key: 28,
|
||
name: '点击[关闭该广告]',
|
||
fastQuery: true,
|
||
matches:
|
||
'@LinearLayout[index=1][clickable=true] <2 * < * - [text*="广告"]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12642584',
|
||
'https://i.gkd.li/i/14647839',
|
||
'https://i.gkd.li/i/14783820',
|
||
],
|
||
},
|
||
{
|
||
preKeys: [-1, 0],
|
||
key: 29,
|
||
name: '点击[Close the ad]',
|
||
fastQuery: true,
|
||
matches: '@LinearLayout[clickable=true] > [text*="Close"]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12905838',
|
||
'https://i.gkd.li/i/15284966',
|
||
],
|
||
},
|
||
|
||
// 预留key
|
||
// 第三段
|
||
{
|
||
preKeys: [28],
|
||
key: 50,
|
||
name: '点击[关闭]',
|
||
matches: '[text*="关闭"][clickable=true]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12663984',
|
||
'https://i.gkd.li/i/14647940',
|
||
'https://i.gkd.li/i/14783534',
|
||
],
|
||
},
|
||
{
|
||
preKeys: [29],
|
||
key: 51,
|
||
name: '点击"Close"',
|
||
matches: '[text="Close"][clickable=true]',
|
||
snapshotUrls: 'https://i.gkd.li/i/12905846',
|
||
},
|
||
|
||
// 预留key
|
||
// 第四段
|
||
{
|
||
preKeys: [50],
|
||
key: 75,
|
||
name: '点击[确认]',
|
||
matches: '[text="确认"][clickable=true]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14647940',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 1,
|
||
name: '功能类-电脑微信快捷自动登录',
|
||
fastQuery: true,
|
||
matchTime: 10000,
|
||
actionMaximum: 1,
|
||
resetMatch: 'activity',
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.webwx.ui.ExtDeviceWXLoginUI',
|
||
'com.tencent.mm.ui.LauncherUI',
|
||
],
|
||
rules: 'TextView[text="取消登录"] - Button[text="登录"]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/13522625', // activityIds: 'com.tencent.mm.plugin.webwx.ui.ExtDeviceWXLoginUI'
|
||
'https://i.gkd.li/i/13522577', // activityIds: 'com.tencent.mm.ui.LauncherUI'
|
||
],
|
||
},
|
||
{
|
||
key: 2,
|
||
name: '功能类-自动授权登录',
|
||
desc: '自动允许使用头像昵称等',
|
||
fastQuery: true,
|
||
matchTime: 10000,
|
||
actionMaximum: 1,
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.base.stub.UIEntryStub',
|
||
'com.tencent.mm.ui.LauncherUI',
|
||
'com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI',
|
||
],
|
||
rules: [
|
||
{
|
||
matches: ['[text^="获取你的"]', '[text="允许"]'],
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12663602',
|
||
'https://i.gkd.li/i/13065462',
|
||
'https://i.gkd.li/i/15271716',
|
||
],
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 4,
|
||
name: '功能类-微信读书网页版扫码登录自动授权',
|
||
fastQuery: true,
|
||
matchTime: 10000,
|
||
actionMaximum: 1,
|
||
resetMatch: 'activity',
|
||
activityIds: 'com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI',
|
||
rules: [
|
||
{
|
||
matches: '[text="微信读书网页版"] +3 Button[text="登 录"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/12506197',
|
||
},
|
||
{
|
||
matches: [
|
||
'[text="登录成功"]',
|
||
'[id="com.tencent.mm:id/g1"][desc="返回"]',
|
||
],
|
||
snapshotUrls: 'https://i.gkd.li/i/12506201',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 5,
|
||
name: '功能类-微信红包自动领取',
|
||
desc: '自动领取私聊红包,群聊红包',
|
||
exampleUrls:
|
||
'https://github.com/gkd-kit/subscription/assets/38517192/32cfda78-b2e1-456c-8d85-bfb2bc4683aa',
|
||
rules: [
|
||
{
|
||
name: '从红包结算界面返回',
|
||
preKeys: [1, 2],
|
||
activityIds:
|
||
'com.tencent.mm.plugin.luckymoney.ui.LuckyMoneyBeforeDetailUI',
|
||
matches: 'ImageView[desc="返回"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/12567696',
|
||
},
|
||
{
|
||
key: 1,
|
||
name: '点击红包-开',
|
||
activityIds:
|
||
'com.tencent.mm.plugin.luckymoney.ui.LuckyMoneyNotHookReceiveUI',
|
||
// Button[desc="开"] 会在出现金币动画时会消失
|
||
matches: 'ImageButton[desc="开"] + Button[desc="开"]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12567697',
|
||
'https://i.gkd.li/i/12567698', // 额外增加,金币动画的快照,规则不在这个快照上运行
|
||
],
|
||
},
|
||
{
|
||
key: 2,
|
||
name: '点击别人发的红包',
|
||
activityIds: 'com.tencent.mm.ui.LauncherUI',
|
||
// 第一个 LinearLayout[childCount=1] 区分是自己发的红包还是别人发的
|
||
// 第二个 LinearLayout[childCount=1] 区分这个红包是否被领取过
|
||
matches:
|
||
'LinearLayout[childCount=1] >5 LinearLayout[childCount=1] - ImageView < LinearLayout + View + RelativeLayout > TextView[text="微信红包"][id!=null]',
|
||
snapshotUrls: 'https://i.gkd.li/i/12567637',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 7,
|
||
name: '功能类-自动选中发送原图',
|
||
desc: '自动选中底部中间的发送原图,可手动取消勾选',
|
||
actionMaximum: 1,
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.gallery.ui.AlbumPreviewUI',
|
||
'com.tencent.mm.plugin.gallery.ui.ImagePreviewUI',
|
||
],
|
||
rules: [
|
||
{
|
||
key: 1,
|
||
fastQuery: true,
|
||
excludeVersionNames: '8.0.15',
|
||
matches:
|
||
'@ImageButton[desc="未选中,原图,复选框"][visibleToUser=true] + [text="原图"]',
|
||
exampleUrls: [
|
||
'https://e.gkd.li/32dc0943-e85f-416d-bb01-6ed610d4bdd8',
|
||
'https://e.gkd.li/93d41161-ab69-4c2d-83bb-637d7292f5e6',
|
||
],
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/16987145', // 未选中
|
||
'https://i.gkd.li/i/16987144', // 未选中
|
||
'https://i.gkd.li/i/16987141', // 已选中
|
||
'https://i.gkd.li/i/16987147', // 已选中
|
||
],
|
||
},
|
||
{
|
||
key: 2,
|
||
versionNames: '8.0.15',
|
||
matches: '@[desc="未选中,原图,复选框"] + [text="原图"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14661734',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 9,
|
||
name: '功能类-自动查看原图',
|
||
desc: '自动点击底部左侧[查看原图]按钮',
|
||
activityIds: 'com.tencent.mm.ui.chatting.gallery.ImageGalleryUI',
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
fastQuery: true,
|
||
excludeVersionNames: '8.0.15',
|
||
matches: 'Button[text^="查看原图"][clickable=true]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/6bb9e68a-43f5-4482-96b1-899cc86fef32',
|
||
snapshotUrls: 'https://i.gkd.li/i/13523031',
|
||
},
|
||
{
|
||
key: 1,
|
||
versionNames: '8.0.15',
|
||
matches: '[text^="查看原图"]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/1a946d04-8a2d-4570-bd8c-38ab112f43a9',
|
||
snapshotUrls: 'https://i.gkd.li/i/14661736',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 10,
|
||
name: '开屏广告-微信小程序',
|
||
fastQuery: true,
|
||
matchTime: 10000,
|
||
forcedTime: 10000,
|
||
// actionMaximum: 1, // 经常需要点2次,首次点击过早大概率跳不过
|
||
// resetMatch: 'activity',
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.appbrand.ui.AppBrandUI',
|
||
'com.tencent.mm.plugin.appbrand.launching.AppBrandLaunchProxyUI',
|
||
],
|
||
rules: [
|
||
{
|
||
actionDelay: 800, // 过早点击首次大概率跳不过
|
||
matches: [
|
||
'[text="广告"][visibleToUser=true]',
|
||
'[text="跳过"][visibleToUser=true]',
|
||
],
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12785183',
|
||
'https://i.gkd.li/i/13306883',
|
||
'https://i.gkd.li/i/13407275',
|
||
'https://i.gkd.li/i/15108441',
|
||
],
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 11,
|
||
name: '功能类-网页版文件传输助手扫码自动授权',
|
||
fastQuery: true,
|
||
matchTime: 10000,
|
||
actionMaximum: 1,
|
||
resetMatch: 'activity',
|
||
activityIds: 'com.tencent.mm.ui.LauncherUI',
|
||
rules: '[text="打开网页版文件传输助手"] + * > Button[text="打开"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/12793745',
|
||
},
|
||
{
|
||
key: 17,
|
||
name: '青少年模式',
|
||
fastQuery: true,
|
||
actionMaximum: 1,
|
||
resetMatch: 'app',
|
||
rules: [
|
||
{
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.finder.ui.',
|
||
'com.tencent.mm.ui.LauncherUI',
|
||
],
|
||
matches: ['[text*="青少年模式"]', '[text="我知道了"]'],
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/13538145',
|
||
'https://i.gkd.li/i/13575195',
|
||
'https://i.gkd.li/i/14735456',
|
||
'https://i.gkd.li/i/14896723',
|
||
],
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 18,
|
||
name: '功能类-青少年模式自动点击验证密码',
|
||
desc: '点击“验证密码”以申请临时访问',
|
||
matchTime: 10000,
|
||
actionMaximum: 1,
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
activityIds:
|
||
'com.tencent.mm.plugin.teenmode.ui.AuthorizationRequestUI',
|
||
matches: '@LinearLayout[childCount=2] > [text="验证密码"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/13588338',
|
||
},
|
||
{
|
||
key: 1,
|
||
activityIds: 'com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI',
|
||
matches: ['View[text="申请今天临时访问"]', 'View[desc="验证密码"]'],
|
||
snapshotUrls: 'https://i.gkd.li/i/13631987',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 19,
|
||
name: '功能类-订阅号-展开更早的消息',
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
fastQuery: true,
|
||
activityIds:
|
||
'com.tencent.mm.plugin.brandservice.ui.timeline.BizTimeLineUI',
|
||
matches: '@[clickable=true] > [text="展开更早的消息"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/13790550',
|
||
},
|
||
{
|
||
key: 1,
|
||
matches: '[desc="展开更早的消息"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/13790949',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 22,
|
||
name: '功能类-开启青少年模式后的每日验证',
|
||
desc: '点击"验证密码"',
|
||
rules: [
|
||
{
|
||
activityIds: 'com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI',
|
||
matches:
|
||
'WebView[childCount=6] View[index=4] > [text="验证密码"][clickable=true]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14050004',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 25,
|
||
name: '局部广告-订阅号消息-推荐文章',
|
||
desc: '自动点击“x”',
|
||
activityIds:
|
||
'com.tencent.mm.plugin.brandservice.ui.flutter.BizFlutterTLFlutterViewActivity',
|
||
rules:
|
||
'View[childCount=2] > View[desc$="推荐"][childCount=3] > ImageView[index=2][clickable=true][visibleToUser=true]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14392392',
|
||
},
|
||
{
|
||
key: 26,
|
||
name: '功能类-付款后自动点击完成/返回商家',
|
||
rules: [
|
||
{
|
||
fastQuery: true,
|
||
activityIds: 'com.tencent.mm.framework.app.UIPageFragmentActivity',
|
||
matches:
|
||
'[vid="kinda_button_impl_wrapper"][desc="完成" || desc="返回商家"]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/a5177d9d-6745-443f-baf5-af57153430d8',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/14399355',
|
||
'https://i.gkd.li/i/14662147',
|
||
'https://i.gkd.li/i/14532946', // 避免在此页面误触
|
||
],
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 28,
|
||
name: '分段广告-订阅号消息-视频推荐',
|
||
desc: '点击[X]-点击[不喜欢此类视频]-点击[确定]',
|
||
activityIds:
|
||
'com.tencent.mm.plugin.brandservice.ui.flutter.BizFlutterTLFlutterViewActivity',
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
name: '点击[X]',
|
||
matches:
|
||
'[desc="订阅号消息"] +3 View >2 [visibleToUser=true] - View >3 ImageView[index=2][clickable=true]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/b777c0b1-f8ed-4712-afd6-2e1a72243475',
|
||
snapshotUrls: 'https://i.gkd.li/i/14436176',
|
||
},
|
||
{
|
||
preKeys: 0,
|
||
key: 1,
|
||
name: '点击[不喜欢此类视频]',
|
||
matches: '[desc="不喜欢此类视频"][clickable=true]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/39e8b378-9b55-4838-92af-b28f04402ca4',
|
||
snapshotUrls: 'https://i.gkd.li/i/14444654',
|
||
},
|
||
{
|
||
preKeys: 1,
|
||
key: 2,
|
||
name: '点击[确定]',
|
||
matches: '[desc="确定"][clickable=true]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/590eb619-9987-4edf-98a8-17146ffeda10',
|
||
snapshotUrls: 'https://i.gkd.li/i/14436190',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 29,
|
||
name: '功能类-解锁 Windows 微信',
|
||
desc: '点击[解锁]',
|
||
rules: [
|
||
{
|
||
fastQuery: true,
|
||
activityIds: 'com.tencent.mm.plugin.webwx.ui.WebWXUnlockUI',
|
||
matches: '[text="解锁"]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/85bb6dcd-0d04-46c1-af14-6e4b57ff4dca',
|
||
snapshotUrls: 'https://i.gkd.li/i/14490116',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 30,
|
||
name: '全屏广告-文档页面-腾讯文档APP弹窗',
|
||
desc: '点击关闭',
|
||
rules: [
|
||
{
|
||
fastQuery: true,
|
||
activityIds: 'com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI',
|
||
matches:
|
||
'@TextView[clickable=true] + * > [visibleToUser=true][text^="使用 APP"] <<n [id="android:id/content"]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/2228f99e-e0a1-4915-864f-d60e3d8580a6',
|
||
snapshotUrls: 'https://i.gkd.li/i/14533286',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 31,
|
||
name: '分段广告-订阅号消息-推荐阅读',
|
||
desc: '点击关闭',
|
||
activityIds:
|
||
'com.tencent.mm.plugin.brandservice.ui.flutter.BizFlutterTLFlutterViewActivity',
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
matches:
|
||
'View > Button > View[desc$="推荐"] > ImageView[index=1][clickable=true][visibleToUser=true]',
|
||
exampleUrls:
|
||
'https://m.gkd.li/101449500/5b815528-1ca2-4016-930e-a3cfb4e5e7ea',
|
||
snapshotUrls: 'https://i.gkd.li/i/14548701',
|
||
},
|
||
{
|
||
key: 1,
|
||
preKeys: 0,
|
||
matches: '[desc="不看此类内容"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14549566',
|
||
},
|
||
{
|
||
key: 2,
|
||
preKeys: 1,
|
||
matches: '[desc="确定"]',
|
||
snapshotUrls: 'https://i.gkd.li/i/14549567',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 32,
|
||
name: '权限提示-权限申请弹窗',
|
||
desc: '点击取消',
|
||
matchTime: 10000,
|
||
actionMaximum: 1,
|
||
resetMatch: 'app',
|
||
rules: [
|
||
{
|
||
fastQuery: true,
|
||
activityIds: 'com.tencent.mm.pluginsdk.permission.PermissionActivity',
|
||
matches: ['[text="权限申请"]', '[text="取消"]'],
|
||
exampleUrls:
|
||
'https://m.gkd.li/57941037/43632b72-d389-4fe7-9708-dac78e900679',
|
||
snapshotUrls: 'https://i.gkd.li/i/14645385',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 34,
|
||
name: '功能类-付款时自动点击[支付]',
|
||
fastQuery: true,
|
||
actionMaximum: 1,
|
||
activityIds: 'com.tencent.mm.framework.app.UIPageFragmentActivity',
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
excludeMatches: [
|
||
'ViewGroup + ViewGroup > ViewGroup > [vid="kinda_button_impl_wrapper"][desc="支付"]',
|
||
'[visibleToUser=true][text="请验证指纹" || text="使用指纹"] <<n [vid="container_layout"]',
|
||
],
|
||
matches:
|
||
'[vid="kinda_button_impl_wrapper"][desc$="支付"][desc.length<5]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/15144571',
|
||
'https://i.gkd.li/i/15360745',
|
||
],
|
||
excludeSnapshotUrls: [
|
||
'https://i.gkd.li/i/16962643',
|
||
'https://i.gkd.li/i/16962673',
|
||
],
|
||
},
|
||
{
|
||
preKeys: [0],
|
||
key: 1,
|
||
matches:
|
||
'ViewGroup + ViewGroup > ViewGroup > [vid="kinda_button_impl_wrapper"][desc="支付"]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/15144570',
|
||
'https://i.gkd.li/i/15360744',
|
||
],
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 35,
|
||
name: '分段广告-订阅号消息内容-广告',
|
||
desc: '点击下拉框-[不感兴趣]-[与我无关]',
|
||
activityIds: [
|
||
'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebView', //调整为TmplWebView, 同时兼容多种ID
|
||
'com.tencent.mm.plugin.webview.ui.tools.fts.MMSosWebViewUI',
|
||
],
|
||
rules: [
|
||
{
|
||
key: 0,
|
||
excludeMatches: [
|
||
// 防止在第二段、第三段出现时触发,防止在文章末尾广告关闭后触发
|
||
'[text="不感兴趣" || text="与我无关" || text="感谢你的反馈"][visibleToUser=true]',
|
||
],
|
||
matches:
|
||
'@[clickable=true][visibleToUser=true] > TextView[text="广告"][visibleToUser=true]', // 某些微信版本上该节点的`clickable=false`
|
||
exampleUrls: [
|
||
'https://e.gkd.li/e73bb653-cc79-455c-958b-38aff6687c37',
|
||
'https://e.gkd.li/5915f80b-66b9-4441-9d36-3caa3fe1be58',
|
||
],
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/12642232', // ui.TmplWebViewMMUI
|
||
'https://i.gkd.li/i/13199281', // ui.TmplWebViewTooLMpUI
|
||
'https://i.gkd.li/i/14006180', // com.tencent.mm.plugin.webview.ui.tools.fts.MMSosWebViewUI
|
||
'https://i.gkd.li/i/15198464', // 使用excludeMatches防止在文章末尾广告关闭后误触
|
||
'https://i.gkd.li/i/16796663', // 内容尾部广告
|
||
'https://i.gkd.li/i/16796725', // 内容中部广告
|
||
'https://i.gkd.li/i/16798663', // clickable=false,使用clickable=true避免误触
|
||
'https://i.gkd.li/i/15198455', // 无id
|
||
],
|
||
},
|
||
{
|
||
// 第二段
|
||
preKeys: [0],
|
||
key: 25,
|
||
excludeMatches: '[text="感谢你的反馈"][visibleToUser=true]',
|
||
matches: '[text="不感兴趣"][clickable=true][visibleToUser=true]', // 为确保能够关闭尾部广告,此处点击“不感兴趣”而非“关闭此广告”
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/16796666', // 内容尾部广告
|
||
'https://i.gkd.li/i/16796729', // 内容中部广告
|
||
'https://i.gkd.li/i/15061424', // 使用excludeMatches防止在文章末尾广告关闭后误触
|
||
'https://i.gkd.li/i/16798661', // clickable=false,使用clickable=true避免误触
|
||
'https://i.gkd.li/i/15198459', // 无id
|
||
],
|
||
},
|
||
{
|
||
// 第三段
|
||
preKeys: [25],
|
||
key: 50,
|
||
matches: '[text="与我无关"][clickable=true][visibleToUser=true]',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/16796674', // 内容尾部广告
|
||
'https://i.gkd.li/i/16796732', // 内容中部广告
|
||
'https://i.gkd.li/i/16798658', // clickable=false,使用clickable=true避免误触
|
||
'https://i.gkd.li/i/15198461', // 无id
|
||
],
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 36,
|
||
name: '功能类-自动点击[查看原视频]',
|
||
rules: [
|
||
{
|
||
fastQuery: true,
|
||
activityIds: '.ui.chatting.gallery.ImageGalleryUI',
|
||
matches: '[text^="查看原视频"][visibleToUser=true]',
|
||
exampleUrls: 'https://e.gkd.li/5332aff9-05bb-4b44-b832-5e2d9b1c1270',
|
||
snapshotUrls: 'https://i.gkd.li/i/16833732',
|
||
},
|
||
],
|
||
},
|
||
{
|
||
key: 37,
|
||
name: '全屏广告-小程序弹窗广告',
|
||
desc: '点击关闭',
|
||
matchTime: 20000,
|
||
actionMaximum: 1,
|
||
rules: [
|
||
{
|
||
fastQuery: true,
|
||
activityIds: 'com.tencent.mm.plugin.appbrand.ui.AppBrandUI',
|
||
excludeMatches: '[text="跳过"][visibleToUser=true]', // 防止提前触发导致失效
|
||
matches:
|
||
'@ImageView[visibleToUser=true][childCount=0][text=null] < FrameLayout[childCount=1] < FrameLayout[childCount=1] <2 FrameLayout[childCount=2] - FrameLayout >4 [text="广告"]',
|
||
exampleUrls: 'https://e.gkd.li/d2b12af6-c204-4da7-8553-4765ef8b8c31',
|
||
snapshotUrls: [
|
||
'https://i.gkd.li/i/13459614',
|
||
'https://i.gkd.li/i/16943989',
|
||
'https://i.gkd.li/i/16920797',
|
||
],
|
||
excludeSnapshotUrls: 'https://i.gkd.li/i/16958795',
|
||
},
|
||
],
|
||
},
|
||
],
|
||
});
|