Squashed commit of the following:

commit 530293feb86f0f73b5370f55d29a61f14dc7c333
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date:   Fri Jan 19 14:03:56 2024 +0000

    chore(actions): check_format_lint

commit d0c0d9c2c8829ad5d28bf103dcbbb00df9e4a92f
Author: aisouler <zy43220@gmail.com>
Date:   Fri Jan 19 22:03:18 2024 +0800

    feat:优化规则

commit c0275deb8315442429cfb1b723754f05d5ea5935
Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Date:   Wed Jan 17 14:30:36 2024 +0000

    chore(actions): check_format_lint

commit d60c00c80f0a09d3c3fe6bc5be298480a12faaf2
Author: aisouler <zy43220@gmail.com>
Date:   Wed Jan 17 22:29:56 2024 +0800

    feat(今日头条):视频广告(优化规则,提高通用性)
This commit is contained in:
aisouler
2024-02-01 18:40:04 +08:00
parent 44dc9bc8f3
commit 81cc4b599a

View File

@@ -58,13 +58,13 @@ export default defineAppConfig({
{
enable: false,
key: 11,
name: '竖屏视频广告',
desc: '检测到广告时,点击右上角[更多]图标按钮,出现菜单,点击不感兴趣',
name: '全屏广告-竖屏视频广告',
desc: '点击右上角[更多]图标按钮,点击不感兴趣',
activityIds: 'com.ss.android.ugc.detail.activity.TikTokActivity',
rules: [
{
key: -1,
preKeys: [0, 1, 2, 3],
preKeys: 0,
actionCd: 35000, //APP更新后点击不感兴趣不会跳过当前视频了所以需要冷却一下等下一次重新跳过广告视频
name: '点击不感兴趣',
matches:
@@ -74,36 +74,18 @@ export default defineAppConfig({
{
key: 0,
name: '点击右上角[更多]图标按钮',
matches:
'@ImageView[clickable=true][desc="更多"] <n RelativeLayout -2 RelativeLayout >4 LynxFlattenUI[text="头条优惠券无门槛全平台通用"]',
matches: 'ImageView[clickable=true][desc="更多"]',
snapshotUrls: [
'https://i.gkd.li/import/12679280',
'https://i.gkd.li/import/12733282',
'https://i.gkd.li/import/12763251',
'https://i.gkd.li/import/12763252',
'https://i.gkd.li/import/12733281',
'https://i.gkd.li/import/13185633',
'https://i.gkd.li/import/13186082',
'https://i.gkd.li/import/13930050',
],
},
{
key: 1,
name: '点击右上角[更多]图标按钮-抖音直播',
matches:
'@ImageView[clickable=true][desc="更多"] <4 RelativeLayout -2 RelativeLayout >4 LinearLayout[childCount=3] > ScrollView[childCount=1] > TextView[text$="广告"][clickable=true]',
snapshotUrls: ['https://i.gkd.li/import/12733281'],
},
{
key: 2,
name: '第二种广告界面;点击右上角[更多]图标按钮',
matches:
'@ImageView[clickable=true][desc="更多"] <n RelativeLayout -2 RelativeLayout >n TextView[text$="广告"]',
snapshotUrls: ['https://i.gkd.li/import/13185633'],
},
{
key: 3,
name: '第三种广告界面;点击右上角[更多]图标按钮',
matches:
'@ImageView[clickable=true][desc="更多"] <n RelativeLayout +2 LinearLayout > TextView[text$="广告"]',
snapshotUrls: ['https://i.gkd.li/import/13186082'],
},
],
},
{
@@ -197,8 +179,7 @@ export default defineAppConfig({
rules: [
{
activityIds: 'com.ss.android.article.news.activity.MainActivity',
matches:
'@FlattenUIImage[clickable=true] <n FrameLayout <<2 FrameLayout - LinearLayout [text="首页"]',
matches: 'FrameLayout[childCount=8] > FlattenUIImage[index=7]',
snapshotUrls: 'https://i.gkd.li/import/13828331',
},
],