Skip to content

Commit

Permalink
perf(全局规则): 开屏广告 (排除搜索页 #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlctate committed Nov 13, 2024
1 parent 85e50b4 commit 3b92e32
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/globalGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,26 @@ export default defineGkdGlobalGroups([
key: 0,
name: '开屏广告',
order: OPEN_AD_ORDER,
fastQuery: true,
matchRoot: true,
matchTime: 2000,
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
actionMaximumKey: 0,
priorityTime: 10000,
rules: [
{
key: 0,
excludeMatches: [
// 防止在应用的搜索框、搜索页面误触
'[text*="搜索"][text.length<6][visibleToUser=true]',
'[(text.length<6 && text*="搜索") || vid~="(?is).*search.*" || (desc.length<6 && desc*="搜索")][visibleToUser=true]',
],
matches: '[text^="跳过"][text.length<=6][visibleToUser=true]',
// 防止在应用的搜索页面误触
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.length<6][visibleToUser=true]',
'[(text.length<6 && text*="搜索") || vid~="(?is).*search.*" || (desc.length<6 && desc*="搜索")][visibleToUser=true]',
],
// 防止在应用的搜索页面误触
excludeMatches:
'[text*="搜索" || text^="猜你" || text="历史记录" || text$="在搜"][text.length>3 && text.length<6][visibleToUser=true]',
matches:
'[childCount=0][visibleToUser=true][(text.length<10 && (text*="跳过" || text*="跳過" || text~="(?is).*skip.*")) || id$="tt_splash_skip_btn" || vid~="(?is).*skip.*" || (vid~="(?is).*count.*" && vid~="(?is).*down.*" && vid!~="(?is).*load.*" && vid!~="(?is).*time.*" && vid!~="(?is).*hour.*" && vid!~="(?is).*minute.*" && vid!~="(?is).*second.*" && vid!~="(?is).*timing.*" && vid!~="(?is).*add.*" && vid!~="(?is).*ead.*" && text!~="([01]?[0-9]|2[0-3])[::][0-5][0-9]") || (desc.length<10 && (desc*="跳过" || desc*="跳過" || desc~="(?is).*skip.*"))]',
excludeSnapshotUrls: [
Expand Down Expand Up @@ -60,7 +56,7 @@ export default defineGkdGlobalGroups([
{
key: 0,
matches: [
'[text*="内测" || text*="测试版" || text*="新版" || text*="更新" || text*="升级" || text*="体验" || text*="內測" || text*="測試版" || text*="升級" || text*="體驗" || text*="Update" || text*="Upgrade" || text*="Experience"][text!*="自动" && text!*="自動" && text!*="成功" && text!*="失败" && text!*="失敗" && text!*="检查更新" && text!*="检测更新"][name!$=".CheckBox"][childCount=0][visibleToUser=true]',
'[text*="内测" || text*="测试版" || text*="新版" || text*="更新" || text*="升级" || text*="体验" || text*="內測" || text*="測試版" || text*="升級" || text*="體驗" || text*="Update" || text*="Upgrade" || text*="Experience"][text!*="自动" && text!*="自動" && text!*="成功" && text!*="失败" && text!*="失敗" && text!*="检查更新" && text!*="检测更新" && text!*="卸载"][name!$=".CheckBox"][childCount=0][visibleToUser=true]',
'[text*="更新" || text*="下载" || text*="安装" || text*="升级" || text*="查看" || text*="体验" || text*="确定" || text*="确认"][text.length<6][name!$=".CheckBox"][childCount=0][visibleToUser=true]',
'[text*="不再提醒" || text$="再说" || text$="拒绝" || text$="再想想" || text*="再看看" || text^="忽略" || text^="暂不" || text^="放弃" || text^="取消" || text$="不要" || text$="再說" || text$="暫不" || text$="拒絕" || text*="稍后" || text^="关闭" || text$="Later" || text^="Ignore" || text^="Not now" || text^="Cancel" || vid="iv_close" || vid="iv_cancel" || vid="img_close" || vid="iv_upgrade_close" || vid="btn_close" || vid="update_undo" || vid="upgrade_dialog_close_btn" || vid="ivCancel" || vid="ivClose" || vid="imgClose" || vid="iv_negative" || vid="iv_close_update_dialog"][name!$=".CheckBox"][childCount=0][visibleToUser=true]',
],
Expand Down

0 comments on commit 3b92e32

Please sign in to comment.