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

Commit

Permalink
perf: 优化开屏广告
Browse files Browse the repository at this point in the history
  • Loading branch information
AIsouler committed Mar 11, 2024
1 parent 7e3c531 commit e56d12c
Show file tree
Hide file tree
Showing 97 changed files with 321 additions and 409 deletions.
5 changes: 3 additions & 2 deletions src/apps/app.esou.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@ export default defineAppConfig({
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
rules: [
{
key: 0,
quickFind: true,
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
exampleUrls:
'https://m.gkd.li/57941037/fe2a046b-1abe-4aba-a0df-8d9568211e0d',
snapshotUrls: 'https://i.gkd.li/i/14189313',
},
{
key: 1,
actionCdKey: 0,
matches:
'[childCount=0][visibleToUser=true][(text.length<10&&(text*="跳过"||text*="跳过"||text*="skip"||text*="Skip")) || id$="tt_splash_skip_btn" || vid*="skip" || vid*="Skip" || (vid*="count" && vid*="down" && vid!*="download") || desc*="跳过" || desc*="skip"]',
},
Expand Down
20 changes: 10 additions & 10 deletions src/apps/cn.lezhi.speedtest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
matchTime: 10000,
quickFind: true,
actionMaximumKey: 0,
rules: [
{
key: 0,
name: '字节SDK',
matches:
'@[id="com.byted.pangle:id/tt_splash_skip_btn"] <<n [id="cn.lezhi.speedtest:id/fl_splash_container"]',
snapshotUrls: 'https://i.gkd.li/i/13544242',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: [
'https://i.gkd.li/i/13544242',
'https://i.gkd.li/i/13885906',
],
},
{
key: 1,
name: '腾讯SDK',
matches: '[text*="跳过"][text.length<=10]',
snapshotUrls: 'https://i.gkd.li/i/13626049',
},
{
name: '腾讯SDK',
matches:
'@View <3 FrameLayout[childCount=4] <2 FrameLayout[childCount=2] < [vid="fl_splash_container"]',
snapshotUrls: 'https://i.gkd.li/i/13885906',
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/apps/cn.mil.junhao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default defineAppConfig({
name: '开屏广告',
quickFind: true,
matchTime: 10000,
resetMatch: 'app',
actionMaximum: 1,
resetMatch: 'app',
rules: '[vid="splash_adv_ship"]',
snapshotUrls: 'https://i.gkd.li/i/13806892',
},
Expand Down
2 changes: 1 addition & 1 deletion src/apps/cn.samsclub.app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
actionMaximum: 1,
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
Expand Down
4 changes: 2 additions & 2 deletions src/apps/cn.wsds.gamemaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ export default defineAppConfig({
{
key: 1,
name: '开屏广告',
desc: '点击跳过',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
quickFind: true,
matches:
'@View <2 FrameLayout[childCount=3] <2 FrameLayout[childCount=2] < [vid="splash_container"]',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/i/13930391',
},
],
Expand Down
9 changes: 3 additions & 6 deletions src/apps/cn.xiaochuankeji.zuiyouLite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ export default defineAppConfig({
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionCdKey: 0,
actionMaximumKey: 0,
rules: [
{
key: 0,
quickFind: true,
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView',
snapshotUrls: [
'https://i.gkd.li/i/12745084',
'https://i.gkd.li/i/14546304',
],
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/i/14546304',
},
{
key: 1,
Expand Down
8 changes: 6 additions & 2 deletions src/apps/com.UCMobile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ export default defineAppConfig({
{
key: -1,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
rules: [
{
matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]',
key: 0,
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/i/13188653',
},
{
quickFind: true,
key: 1,
matches:
'@View[clickable=true] < RelativeLayout <2 FrameLayout < FrameLayout < FrameLayout <4 FrameLayout < [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/i/13197655',
Expand Down
3 changes: 1 addition & 2 deletions src/apps/com.android.bankabc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ export default defineAppConfig({
{
key: 1,
name: '开屏广告',
desc: '点击跳过',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
rules: [
{
key: 0,
Expand All @@ -22,7 +22,6 @@ export default defineAppConfig({
},
{
key: 1,
actionCdKey: 0,
matches:
'[childCount=0][visibleToUser=true][(text.length<10&&(text*="跳过"||text*="跳过"||text*="skip"||text*="Skip")) || id$="tt_splash_skip_btn" || vid*="skip" || vid*="Skip" || (vid*="count" && vid*="down" && vid!*="download") || desc*="跳过" || desc*="skip"]',
},
Expand Down
6 changes: 3 additions & 3 deletions src/apps/com.antfortune.wealth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
resetMatch: 'app',
actionMaximum: 1,
matchTime: 10000,
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules:
'@View[clickable=true] <2 [id="com.antfortune.wealth:id/welcome_page"]',
snapshotUrls: 'https://i.gkd.li/i/12776577',
Expand Down
6 changes: 3 additions & 3 deletions src/apps/com.baidu.duer.superapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
rules: [
{
key: 0,
quickFind: true,
matches: '[text*="跳过"][text.length<10][clickable=true]',
exampleUrls:
'https://m.gkd.li/57941037/017edf59-e705-4f92-9726-af7fec5aaf41',
snapshotUrls: 'https://i.gkd.li/i/14368528',
},
{
key: 1,
actionCdKey: 0,
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
exampleUrls:
'https://m.gkd.li/57941037/7d338956-f006-4775-a418-2ae6dc21ef9a',
snapshotUrls: 'https://i.gkd.li/i/14204175',
Expand Down
3 changes: 2 additions & 1 deletion src/apps/com.baidu.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
exampleUrls:
'https://m.gkd.li/57941037/1cddb43c-9ddc-4fb0-a781-66f167035d2b',
snapshotUrls: 'https://i.gkd.li/i/14406395',
Expand Down
10 changes: 4 additions & 6 deletions src/apps/com.baidu.tieba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
rules: [
{
key: 0,
quickFind: true,
name: '"跳过+倒计时"型',
matches: 'TextView[text^="跳过"][text.length<=10]',
snapshotUrls: [
'https://i.gkd.li/i/12775906',
Expand All @@ -26,14 +26,12 @@ export default defineAppConfig({
},
{
key: 1,
name: '"圆圈跳过"型-来自穿山甲SDK',
matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]',
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/i/13322227',
},
{
key: 2,
quickFind: true,
name: '"x+关闭"型',
matches:
'TextView[text="广告"] - @LinearLayout[clickable=true] > [text="关闭"]',
snapshotUrls: 'https://i.gkd.li/i/13168386',
Expand Down
4 changes: 1 addition & 3 deletions src/apps/com.black.unique.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ export default defineAppConfig({
{
key: 2,
name: '开屏广告',
desc: '点击跳过',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
activityIds: 'com.black.unique.feature.home.HomeActivity',
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
exampleUrls:
'https://m.gkd.li/57941037/63a72bd6-72be-410c-86ab-09ba7a4fa318',
snapshotUrls: 'https://i.gkd.li/i/14167393',
Expand Down
1 change: 0 additions & 1 deletion src/apps/com.boohee.one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export default defineAppConfig({
snapshotUrls: 'https://i.gkd.li/i/12716970',
},
{
enable: true,
key: 10,
name: '通知提示-请求开启通知权限弹窗',
desc: '自动点击x按钮',
Expand Down
3 changes: 2 additions & 1 deletion src/apps/com.byfen.market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
key: 0,
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true] + TextView <<n [id="android:id/content"]',
snapshotUrls: [
'https://i.gkd.li/i/13298944',
'https://i.gkd.li/i/13800021',
Expand Down
5 changes: 4 additions & 1 deletion src/apps/com.chunqiu.ah.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
quickFind: true,
actionMaximumKey: 0,
rules: [
{
key: 0,
matches: '[text^="跳过"][text.length<10]',
snapshotUrls: [
'https://i.gkd.li/i/13264387',
'https://i.gkd.li/i/13264381',
],
},
{
key: 1,
matches: '@ImageView - [text="|"]',
snapshotUrls: 'https://i.gkd.li/i/13264377',
},
Expand Down
20 changes: 12 additions & 8 deletions src/apps/com.citiccard.mobilebank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,34 @@ export default defineAppConfig({
{
key: 0,
name: '开屏广告',
activityIds: ['com.citiccard.mobilebankapp.WelcomeActivity'],
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
rules: [
{
key: 0,
matches: '[id="com.citiccard.mobilebank:id/btn_skip"]',
snapshotUrls: ['https://i.gkd.li/i/12684908'],
snapshotUrls: 'https://i.gkd.li/i/12684908',
},
{
key: 1,
matches: '[id="com.citiccard.mobilebank:id/jump"]',
snapshotUrls: ['https://i.gkd.li/i/13049013'],
snapshotUrls: 'https://i.gkd.li/i/13049013',
},
],
},
{
key: 1,
name: '全屏广告-弹窗广告',
activityIds: [
'com.citiccard.mobilebank.card.activity.BillDetailHomeActivity',
],
quickFind: true,
rules: [
{
activityIds:
'com.citiccard.mobilebank.card.activity.BillDetailHomeActivity',
matches: '[id="com.citiccard.mobilebank:id/iv_bill_home_cancel"]',
snapshotUrls: ['https://i.gkd.li/i/13049284'],
snapshotUrls: 'https://i.gkd.li/i/13049284',
},
],
},
Expand All @@ -46,7 +50,7 @@ export default defineAppConfig({
{
matches:
'[id="com.citiccard.mobilebank:id/ll_app_upgrade_content"] + [id="com.citiccard.mobilebank:id/iv_close"]',
snapshotUrls: ['https://i.gkd.li/i/13049283'],
snapshotUrls: 'https://i.gkd.li/i/13049283',
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/apps/com.cmstop.shaoxing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default defineAppConfig({
key: 0,
name: '开屏广告',
quickFind: true,
actionMaximum: 1,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: '[id="com.cmstop.shaoxing:id/roundProgressBar"]',
snapshotUrls: 'https://i.gkd.li/i/13611775',
Expand Down
Loading

0 comments on commit e56d12c

Please sign in to comment.