mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
perf(全局规则): 开屏广告 (#537)
极少数开屏广告需要用 vid*=countdown 才能匹配上,但 vid*=countdown 误触概率却比较高,因此去掉
This commit is contained in:
24
src/apps/com.shaoniandream.ts
Normal file
24
src/apps/com.shaoniandream.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { defineGkdApp } from '@gkd-kit/define';
|
||||
|
||||
export default defineGkdApp({
|
||||
id: 'com.shaoniandream',
|
||||
name: '少年梦阅读',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
priorityTime: 10000,
|
||||
rules: [
|
||||
{
|
||||
fastQuery: true,
|
||||
matches: '[id="com.shaoniandream:id/countdown"]',
|
||||
exampleUrls: 'https://e.gkd.li/080e7f84-c8ac-48b3-ba82-c1dbb795f4f6',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13236791',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
25
src/apps/com.simplesecurity.english.ts
Normal file
25
src/apps/com.simplesecurity.english.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineGkdApp } from '@gkd-kit/define';
|
||||
|
||||
export default defineGkdApp({
|
||||
id: 'com.simplesecurity.english',
|
||||
name: '水果派',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
priorityTime: 10000,
|
||||
rules: [
|
||||
{
|
||||
fastQuery: true,
|
||||
matchDelay: 3000, // 反馈3s后才能关闭
|
||||
matches: '[text="关闭广告"]',
|
||||
exampleUrls: 'https://e.gkd.li/8718ddc4-8775-482e-a259-bc43c7171fd8',
|
||||
snapshotUrls: 'https://i.gkd.li/i/13447714',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -205,10 +205,10 @@ export const blackListAppIDs: string[] = [
|
||||
'com.duokan.phone.remotecontroller', // 万能遥控
|
||||
'com.mfashiongallery.emag', // 小米画报
|
||||
'com.miui.thirdappassistant', // 三方应用异常分析
|
||||
|
||||
'com.xiaomi.wpslauncher', // WPS Office PC
|
||||
'com.xiaomi.cajlauncher', // CAJViewer PC
|
||||
'com.mi.car.padapp', // 小米汽车扩展屏
|
||||
'com.android.calendar', // 日历
|
||||
|
||||
// 三星
|
||||
'com.samsung.android.app.cameraassistant',
|
||||
|
||||
@@ -32,11 +32,7 @@ export default defineGkdGlobalGroups([
|
||||
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: [
|
||||
// 避免误触
|
||||
'https://i.gkd.li/i/16742932', // vid!~="(?is).*timing.*"
|
||||
],
|
||||
'[childCount=0][visibleToUser=true][(text.length<10 && (text*="跳过" || text*="跳過" || text~="(?is).*skip.*")) || vid~="(?is).*skip.*" || id$="tt_splash_skip_btn" || (desc.length<10 && (desc*="跳过" || desc*="跳過" || desc~="(?is).*skip.*"))]',
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
|
||||
Reference in New Issue
Block a user