Skip to content
This repository has been archived by the owner on Feb 10, 2025. It is now read-only.

Commit

Permalink
fix(微信): 朋友圈广告一段失效(GKD1.7有效)
Browse files Browse the repository at this point in the history
  • Loading branch information
AIsouler committed Mar 4, 2024
1 parent 0917456 commit b4e0395
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions src/apps/com.tencent.mm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ export default defineAppConfig({
'https://github.com/gkd-kit/subscription/assets/38517192/c9ae4bba-a748-4755-b5e4-c7ad3d489a79',
],
rules: [
{
key: -1,
name: '点击广告卡片右上角',
action: 'clickCenter',
position: {
left: 'width * 0.0569',
top: 'width * 0.9083',
},
quickFind: true,
excludeMatches:
'@LinearLayout[clickable=true] > [text="广告" || text="Sponsored" || text="廣告"]',
matches: '@RelativeLayout >7 [text="广告"]',
exampleUrls:
'https://m.gkd.li/57941037/829e1b0b-9fa2-4a31-9c36-542ad6bd7b6e',
snapshotUrls: 'https://i.gkd.li/i/14476135',
},
{
key: 0,
name: '点击广告卡片右上角',
Expand All @@ -31,7 +47,7 @@ export default defineAppConfig({
},
// 以下是只出现二段的情况
{
preKeys: 0,
preKeys: [-1, 0],
key: 1,
name: '点击关闭',
quickFind: true,
Expand All @@ -42,15 +58,15 @@ export default defineAppConfig({
],
},
{
preKeys: 0,
preKeys: [-1, 0],
key: 2,
name: '点击"Close the ad"',
quickFind: true,
matches: '[text="Close the ad"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/i/14207480',
},
{
preKeys: 0,
preKeys: [-1, 0],
key: 3,
name: '点击"關閉此廣告"',
quickFind: true,
Expand All @@ -61,7 +77,7 @@ export default defineAppConfig({
// 预留key
// 以下是出现三段的情况
{
preKeys: 0,
preKeys: [-1, 0],
key: 50,
name: '点击"关闭该广告"',
matches: '@LinearLayout[clickable=true] > [text="关闭该广告"]',
Expand All @@ -76,7 +92,7 @@ export default defineAppConfig({
snapshotUrls: 'https://i.gkd.li/i/12663984',
},
{
preKeys: 0,
preKeys: [-1, 0],
key: 52,
name: '点击"Close the ad"',
matches: '@LinearLayout[clickable=true] > [text="Close the ad"]',
Expand Down

0 comments on commit b4e0395

Please sign in to comment.