perf: 开屏广告-全局

This commit is contained in:
AIsouler
2025-03-20 13:12:06 +08:00
parent bd3ffafcd1
commit 8c2e5ae83b
2 changed files with 9 additions and 12 deletions

View File

@@ -212,6 +212,7 @@ export const blackListAppIDs: string[] = [
'com.xiaomi.cajlauncher', // CAJViewer PC
'com.mi.car.padapp', // 小米汽车扩展屏
'com.android.calendar', // 日历
'com.mi.earphone', // 小米耳机
// 三星
'com.samsung.android.app.cameraassistant',

View File

@@ -24,15 +24,10 @@ export default defineGkdGlobalGroups([
// 防止在应用的搜索页面误触
excludeMatches:
'[text*="搜索" || text^="猜你" || text="历史记录" || text$="在搜"][text.length>3 && text.length<6][visibleToUser=true]',
matches: '[text*="跳过"][text.length<10][visibleToUser=true]',
},
{
key: 1,
// 防止在应用的搜索页面误触
excludeMatches:
'[text*="搜索" || text^="猜你" || text="历史记录" || text$="在搜"][text.length>3 && text.length<6][visibleToUser=true]',
matches:
anyMatches: [
'[text*="跳过" || text*="跳過" || text*="skip" || text*="Skip" || text*="SKIP"][text.length<10][visibleToUser=true]',
'[childCount=0][visibleToUser=true][(text.length<10 && (text*="跳过" || text*="跳過" || text~="(?is).*skip.*")) || (vid~="(?is).*skip.*" && text!="帮助" && text!="取消") || id$="tt_splash_skip_btn" || (desc.length<10 && (desc*="跳过" || desc*="跳過" || desc~="(?is).*skip.*"))]',
],
excludeSnapshotUrls: [
// 避免误触
'https://i.gkd.li/i/17108010', // text!="帮助"
@@ -40,10 +35,11 @@ export default defineGkdGlobalGroups([
],
},
{
key: 2,
action: 'clickCenter',
matches:
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true][text=null][visibleToUser=true] + TextView[visibleToUser=true][text=null][index=parent.childCount.minus(1)]', // 字节SDK
key: 1, // 字节SDK
anyMatches: [
'@View[clickable=true][text=null][visibleToUser=true] + TextView[index=parent.childCount.minus(1)][text=null] <n FrameLayout[childCount>2] >(7,8,9,10) [text*="第三方应用" || text*="扭动手机" || text*="点击或上滑"][visibleToUser=true]',
'FrameLayout > FrameLayout[childCount>2] > @View[clickable=true][text=null][visibleToUser=true] + TextView[index=parent.childCount.minus(1)][text=null][visibleToUser=true]',
],
},
],
apps: [...appList.openAdBlackListAppIDs]