mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 16:25:09 +08:00
feat(微信): 朋友圈广告(重写规则)
This commit is contained in:
@@ -3,13 +3,13 @@ import { defineAppConfig } from '../types';
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
id: 'com.tencent.mm',
|
id: 'com.tencent.mm',
|
||||||
name: '微信',
|
name: '微信',
|
||||||
|
deprecatedKeys: [12, 20],
|
||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
enable: false,
|
enable: false,
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '分段广告-朋友圈广告',
|
name: '分段广告-朋友圈广告',
|
||||||
desc: '点击广告卡片右上角广告,直接关闭/出现菜单,确认关闭',
|
desc: '点击广告卡片右上角,直接关闭/出现菜单,确认关闭',
|
||||||
quickFind: true,
|
|
||||||
activityIds: [
|
activityIds: [
|
||||||
'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
|
'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
|
||||||
'com.tencent.mm.plugin.sns.ui.improve.ImproveSnsTimelineUI',
|
'com.tencent.mm.plugin.sns.ui.improve.ImproveSnsTimelineUI',
|
||||||
@@ -22,113 +22,71 @@ export default defineAppConfig({
|
|||||||
key: 0,
|
key: 0,
|
||||||
name: '点击广告卡片右上角',
|
name: '点击广告卡片右上角',
|
||||||
matches:
|
matches:
|
||||||
'ImageView - TextView[text="广告"][clickable=true][id!=null]',
|
'@LinearLayout[clickable=true] > [text="广告" || text="Sponsored" || text="廣告"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12642588',
|
'https://i.gkd.li/import/13000395', // text="广告"
|
||||||
'https://i.gkd.li/import/12888129', //ImageView - TextView[text="广告"][id!=null][index=0]这个规则无法匹配该广告,需要删除[index=0]
|
'https://i.gkd.li/import/12905837', // text="Sponsored"
|
||||||
'https://i.gkd.li/import/12907641',
|
'https://i.gkd.li/import/13791200', // text="廣告"
|
||||||
'https://i.gkd.li/import/13000395',
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// 以下是[确认关闭按钮]出现的情况
|
// 以下是只出现二段的情况
|
||||||
// 情况1 - 你觉得这条广告怎么样->直接关闭
|
|
||||||
{
|
{
|
||||||
preKeys: 0,
|
preKeys: 0,
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '你觉得这条广告怎么样-点击[关闭该广告]',
|
name: '点击关闭',
|
||||||
matches:
|
matches: '[text^="关闭"][clickable=true]',
|
||||||
'@LinearLayout[clickable=true][childCount=2] > [text="关闭该广告"]',
|
snapshotUrls: [
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12642584'],
|
'https://i.gkd.li/import/12907642', // text="关闭该广告"
|
||||||
|
'https://i.gkd.li/import/13926578', // text="关闭广告"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: 0,
|
preKeys: 0,
|
||||||
key: 2,
|
key: 2,
|
||||||
name: '关闭该广告的原因-点击[直接关闭]',
|
name: '点击"Close the ad"',
|
||||||
matches: '[text="关闭该广告的原因"] +(2) [text="直接关闭"]',
|
matches: '[text="Close the ad"][clickable=true]',
|
||||||
snapshotUrls: ['https://i.gkd.li/import/12663984'],
|
snapshotUrls: 'https://i.gkd.li/import/14207480',
|
||||||
},
|
},
|
||||||
// 情况2 - 关闭该广告
|
|
||||||
{
|
{
|
||||||
preKeys: 0,
|
preKeys: 0,
|
||||||
key: 3,
|
key: 3,
|
||||||
name: '广告反馈-点击[关闭该广告]',
|
name: '点击"關閉此廣告"',
|
||||||
matches: 'TextView[text^="关闭"][text$="广告"][clickable=true]',
|
matches: '[text="關閉此廣告"][clickable=true]',
|
||||||
snapshotUrls: [
|
snapshotUrls: 'https://i.gkd.li/import/13791202',
|
||||||
'https://i.gkd.li/import/12907642',
|
|
||||||
'https://i.gkd.li/import/13926578',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
|
||||||
},
|
// 预留key
|
||||||
{
|
// 以下是出现三段的情况
|
||||||
enable: false,
|
|
||||||
key: 12,
|
|
||||||
name: '分段广告-朋友圈广告[英文]',
|
|
||||||
desc: '点击广告卡片右上角[Sponsored],直接关闭/出现菜单点击[Close the ad],确认关闭',
|
|
||||||
activityIds: [
|
|
||||||
'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
|
|
||||||
'com.tencent.mm.plugin.sns.ui.improve.ImproveSnsTimelineUI',
|
|
||||||
],
|
|
||||||
quickFind: true,
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
key: 0,
|
|
||||||
name: '点击广告卡片右上角[Sponsored]',
|
|
||||||
matches:
|
|
||||||
'ImageView - TextView[text="Sponsored"][clickable=true][id!=null]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12905837',
|
|
||||||
},
|
|
||||||
// 以下是[确认关闭按钮]出现的情况
|
|
||||||
// 情况1 - 你觉得这条广告怎么样->直接关闭
|
|
||||||
{
|
{
|
||||||
preKeys: 0,
|
preKeys: 0,
|
||||||
key: 1,
|
key: 50,
|
||||||
name: 'Sponsored story-点击[Close the ad]',
|
name: '点击"关闭该广告"',
|
||||||
matches:
|
matches: '@LinearLayout[clickable=true] > [text="关闭该广告"]',
|
||||||
'@LinearLayout[clickable=true][childCount=2] > TextView[text="Close the ad"]',
|
snapshotUrls: 'https://i.gkd.li/import/12642584',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// 第三段
|
||||||
|
preKeys: 50,
|
||||||
|
key: 51,
|
||||||
|
name: '点击"直接关闭"',
|
||||||
|
matches: '[text="直接关闭"]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/12663984',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
preKeys: 0,
|
||||||
|
key: 52,
|
||||||
|
name: '点击"Close the ad"',
|
||||||
|
matches: '@LinearLayout[clickable=true] > [text="Close the ad"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12905838',
|
snapshotUrls: 'https://i.gkd.li/import/12905838',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
preKeys: 0,
|
// 第三段
|
||||||
key: 2,
|
preKeys: 52,
|
||||||
name: 'Reason for closing the ad - 点击[Close]',
|
key: 53,
|
||||||
matches: '[text="Reason for closing the ad"] +(2) [text="Close"]',
|
name: '点击"Close"',
|
||||||
|
matches: '[text="Close"][clickable=true]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12905846',
|
snapshotUrls: 'https://i.gkd.li/import/12905846',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
preKeys: 0,
|
|
||||||
key: 3,
|
|
||||||
matches: '[text="Close the ad"]',
|
|
||||||
exampleUrls:
|
|
||||||
'https://m.gkd.li/57941037/e7e8d592-740b-415d-9224-f6268709d69a',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/14207480',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 20,
|
|
||||||
name: '分段广告-朋友圈广告[繁体]',
|
|
||||||
desc: '点击广告卡片右上角[廣告],出现菜单点击[關閉此廣告],确认关闭',
|
|
||||||
activityIds: [
|
|
||||||
'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
|
|
||||||
'com.tencent.mm.plugin.sns.ui.improve.ImproveSnsTimelineUI',
|
|
||||||
],
|
|
||||||
quickFind: true,
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
key: 0,
|
|
||||||
name: '点击广告卡片右上角[廣告]',
|
|
||||||
matches:
|
|
||||||
'ImageView - TextView[text="廣告"][clickable=true][id!=null]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13791200',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
preKeys: 0,
|
|
||||||
key: 1,
|
|
||||||
name: '点击[關閉此廣告]',
|
|
||||||
matches: 'RelativeLayout[childCount=6] > TextView[text="關閉此廣告"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13791202',
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user