Skip to content

Commit

Permalink
fix(大学搜题酱): 修复开屏广告失效(gkd-kit#961)
Browse files Browse the repository at this point in the history
  • Loading branch information
aoguai committed Oct 12, 2023
1 parent d2840b5 commit 0426e5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/apps/com.zmzx.college.search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ export default defineAppConfig({
name: '开屏广告',
quickFind: true,
activityIds: 'com.zmzx.college.search.activity.init.InitActivity',
rules:
'[id="com.zmzx.college.search:id/ksad_splash_root_container"] [text="跳过"]',
rules: [
'[id="com.zmzx.college.search:id/ksad_splash_root_container"]',

This comment has been minimized.

Copy link
@lisonge

lisonge Oct 12, 2023

规则写错了哦,这个会使 GKD 去点击 [id="com.zmzx.college.search:id/ksad_splash_root_container"]

可以把 rules 改成 TextView[text^="跳过"][text.length<=3]

This comment has been minimized.

Copy link
@aoguai

aoguai Oct 12, 2023

Author Owner

🙀昨天把第一张快照里的FrameLayout当最后节点了,今天还没发现

'TextView[text*="跳过"]',
],
snapshotUrls: [
'https://gkd-kit.songe.li/import/12867875',
'https://gkd-kit.songe.li/import/12867970',
'https://gkd-kit.songe.li/import/12881929',
],
},
{
Expand Down

0 comments on commit 0426e5e

Please sign in to comment.