mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-22 17:55:12 +08:00
perf: 迅雷
This commit is contained in:
@@ -121,20 +121,18 @@ export default defineGkdApp({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 3,
|
key: 3,
|
||||||
name: '全屏广告-应用内弹窗广告',
|
name: '全屏广告-弹窗广告',
|
||||||
desc: '⚠ 此规则容易误触,因此默认关闭。',
|
desc: '点击关闭',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
|
fastQuery: true,
|
||||||
activityIds: [
|
activityIds: [
|
||||||
'com.xunlei.downloadprovider.frame.MainTabActivity',
|
'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||||
'com.xunlei.downloadprovider.launch.LaunchActivity',
|
'com.xunlei.downloadprovider.launch.LaunchActivity',
|
||||||
],
|
],
|
||||||
matches: '@[text="关闭"] +n * >n [text*="广告"]',
|
matches: ['@[text="关闭"]', '[text*="广告"]'],
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/12868648',
|
|
||||||
'https://i.gkd.li/i/12879372',
|
|
||||||
'https://i.gkd.li/i/12882366',
|
|
||||||
'https://i.gkd.li/i/12892871',
|
'https://i.gkd.li/i/12892871',
|
||||||
'https://i.gkd.li/i/13799878',
|
'https://i.gkd.li/i/13799878',
|
||||||
],
|
],
|
||||||
@@ -143,8 +141,14 @@ export default defineGkdApp({
|
|||||||
key: 2,
|
key: 2,
|
||||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||||
matches:
|
matches:
|
||||||
'TextView[text="广告"] <n ViewGroup -2 ViewGroup > @ViewGroup',
|
'ImageView < @ViewGroup[visibleToUser=true] < ViewGroup +n ViewGroup > [text="广告"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12879452',
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/i/12879452',
|
||||||
|
'https://i.gkd.li/i/12882199', // n = 1
|
||||||
|
'https://i.gkd.li/i/12881911', // n = 2
|
||||||
|
'https://i.gkd.li/i/12892912', // 点击目标为具备 clickable=true 的 ViewGroup,防止在这个快照中点击到下落的礼物
|
||||||
|
'https://i.gkd.li/i/12881976', // 限定 visibleToUser=true,防止在这个快照中误触
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 3,
|
key: 3,
|
||||||
@@ -165,7 +169,6 @@ export default defineGkdApp({
|
|||||||
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
|
'com.bytedance.sdk.openadsdk.stub.activity.Stub_Standard_Portrait_Activity',
|
||||||
matches:
|
matches:
|
||||||
'Image[text=""] < @View + View +n View > View > TextView[text$="广告"][text.length<=10]',
|
'Image[text=""] < @View + View +n View > View > TextView[text$="广告"][text.length<=10]',
|
||||||
actionDelay: 1000,
|
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/12868667',
|
'https://i.gkd.li/i/12868667',
|
||||||
'https://i.gkd.li/i/12881946',
|
'https://i.gkd.li/i/12881946',
|
||||||
@@ -180,63 +183,29 @@ export default defineGkdApp({
|
|||||||
'com.xunlei.downloadprovider.frame.MainTabActivity',
|
'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||||
'com.xunlei.downloadprovider.launch.LaunchActivity',
|
'com.xunlei.downloadprovider.launch.LaunchActivity',
|
||||||
],
|
],
|
||||||
matches: 'ImageView - FrameLayout > FrameLayout > ImageView',
|
matches:
|
||||||
|
'[id="android:id/content"] >(3,4) FrameLayout[childCount>3] > FrameLayout[childCount=1] > ImageView[childCount=0][text=null]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/12882132',
|
'https://i.gkd.li/i/12882132',
|
||||||
'https://i.gkd.li/i/12901374',
|
'https://i.gkd.li/i/12901374',
|
||||||
|
'https://i.gkd.li/i/12882237',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
|
||||||
key: 21,
|
|
||||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
|
||||||
matches:
|
|
||||||
'ImageView < FrameLayout - FrameLayout > FrameLayout > ImageView',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12882166',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 22,
|
|
||||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
|
||||||
matches:
|
|
||||||
'ImageView - LinearLayout - FrameLayout > FrameLayout > ImageView',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12882237',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 23,
|
key: 23,
|
||||||
|
fastQuery: true,
|
||||||
activityIds:
|
activityIds:
|
||||||
'com.xunlei.downloadprovider.download.taskdetails.newui.DownloadDetailsActivity',
|
'com.xunlei.downloadprovider.download.taskdetails.newui.DownloadDetailsActivity',
|
||||||
fastQuery: true,
|
|
||||||
matches:
|
matches:
|
||||||
'[id="com.xunlei.downloadprovider:id/hermes_ad_banner_negative"]',
|
'[id="com.xunlei.downloadprovider:id/hermes_ad_banner_negative"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/13597068',
|
snapshotUrls: 'https://i.gkd.li/i/13597068',
|
||||||
},
|
},
|
||||||
|
|
||||||
// 快手广告
|
|
||||||
{
|
|
||||||
key: 30,
|
|
||||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
|
||||||
matches:
|
|
||||||
'ImageView < @ViewGroup[visibleToUser=true] < ViewGroup +n ViewGroup > [text="广告"]',
|
|
||||||
snapshotUrls: [
|
|
||||||
'https://i.gkd.li/i/12882199', // n = 1
|
|
||||||
'https://i.gkd.li/i/12881911', // n = 2
|
|
||||||
'https://i.gkd.li/i/12892912', // 点击目标为具备 clickable=true 的 ViewGroup,防止在这个快照中点击到下落的礼物
|
|
||||||
'https://i.gkd.li/i/12881976', // 限定 visibleToUser=true,防止在这个快照中误触
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 31,
|
|
||||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
|
||||||
matches:
|
|
||||||
'[text="广告"] <2 ViewGroup -2 ViewGroup >n [text="跳过"] + ImageView',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12881976',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key: 32,
|
key: 32,
|
||||||
|
fastQuery: true,
|
||||||
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
activityIds: 'com.xunlei.downloadprovider.frame.MainTabActivity',
|
||||||
matches: [
|
matches:
|
||||||
'ViewGroup[childCount=2] > ImageView + TextView[text="广告"]',
|
'ImageView[childCount=0] < @ViewGroup[clickable=true] < ViewGroup <n ViewGroup + ViewGroup >3 [text="广告"]',
|
||||||
'ViewGroup[childCount=1] > @ViewGroup[childCount=1][clickable=true] > ImageView[childCount=0]',
|
|
||||||
],
|
|
||||||
snapshotUrls: 'https://i.gkd.li/i/13761275',
|
snapshotUrls: 'https://i.gkd.li/i/13761275',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -277,7 +246,7 @@ export default defineGkdApp({
|
|||||||
],
|
],
|
||||||
matches: '[id="com.xunlei.downloadprovider:id/close_ad"]',
|
matches: '[id="com.xunlei.downloadprovider:id/close_ad"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/128818775',
|
'https://i.gkd.li/i/12881877',
|
||||||
'https://i.gkd.li/i/13198070',
|
'https://i.gkd.li/i/13198070',
|
||||||
'https://i.gkd.li/i/13484249',
|
'https://i.gkd.li/i/13484249',
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user