mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-19 00:05:19 +08:00
feat(百度贴吧): 规则优化 (#2055)
* feat(百度贴吧):规则优化 * Update com.baidu.tieba.ts close #2040 close #1698
This commit is contained in:
@@ -32,6 +32,7 @@ export default defineAppConfig({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
|
quickFind: true,
|
||||||
name: '【x+关闭】型',
|
name: '【x+关闭】型',
|
||||||
matches:
|
matches:
|
||||||
'TextView[text="广告"] - @LinearLayout[clickable=true] > [text="关闭"]',
|
'TextView[text="广告"] - @LinearLayout[clickable=true] > [text="关闭"]',
|
||||||
@@ -57,7 +58,7 @@ export default defineAppConfig({
|
|||||||
// 'TextView[text$="广告"]',
|
// 'TextView[text$="广告"]',
|
||||||
'RelativeLayout > TextView[clickable=true][text$="广告"]',
|
'RelativeLayout > TextView[clickable=true][text$="广告"]',
|
||||||
// 'LinearLayout[childCount=1] > @FrameLayout[clickable=true][childCount=1][visibleToUser=true] > ImageView',
|
// 'LinearLayout[childCount=1] > @FrameLayout[clickable=true][childCount=1][visibleToUser=true] > ImageView',
|
||||||
'LinearLayout[childCount=1] > @FrameLayout[clickable=true][childCount=1] > ImageView',
|
'LinearLayout[childCount=1] > @FrameLayout[clickable=true][childCount=1][desc=null] > ImageView',
|
||||||
],
|
],
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/12775930',
|
'https://i.gkd.li/import/12775930',
|
||||||
@@ -67,6 +68,7 @@ export default defineAppConfig({
|
|||||||
'https://i.gkd.li/import/13054256', // 此3条应算卡片式广告
|
'https://i.gkd.li/import/13054256', // 此3条应算卡片式广告
|
||||||
'https://i.gkd.li/import/12775916',
|
'https://i.gkd.li/import/12775916',
|
||||||
'https://i.gkd.li/import/12775892', // 指定点击目标为具备 clickable=true 属性的 @FrameLayout,防止在这个快照误触点击收藏
|
'https://i.gkd.li/import/12775892', // 指定点击目标为具备 clickable=true 属性的 @FrameLayout,防止在这个快照误触点击收藏
|
||||||
|
'https://i.gkd.li/import/13328300', // 指定点击目标为具备 desc=null 属性的 @FrameLayout,防止在这个快照误触点击【更多】
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -153,12 +155,14 @@ export default defineAppConfig({
|
|||||||
activityIds: [
|
activityIds: [
|
||||||
'com.baidu.tieba.frs.FrsActivity',
|
'com.baidu.tieba.frs.FrsActivity',
|
||||||
'com.baidu.tieba.tblauncher.MainTabActivity',
|
'com.baidu.tieba.tblauncher.MainTabActivity',
|
||||||
|
'com.baidu.tieba.LogoActivity',
|
||||||
],
|
],
|
||||||
matches:
|
matches:
|
||||||
'@TextView[clickable=true && text=null] - FrameLayout TextView[text="广告"]',
|
'@TextView[clickable=true && text=null] - FrameLayout TextView[text="广告"]',
|
||||||
snapshotUrls: [
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/import/13168383', // activityIds: com.baidu.tieba.tblauncher.MainTabActivity
|
'https://i.gkd.li/import/13168383', // activityIds: com.baidu.tieba.tblauncher.MainTabActivity
|
||||||
'https://i.gkd.li/import/13322120', // activityIds: com.miui.home.launcher.Launcher
|
'https://i.gkd.li/import/13322120', // activityIds: com.miui.home.launcher.Launcher
|
||||||
|
'https://i.gkd.li/import/13328246', // activityIds: com.baidu.tieba.LogoActivity
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@@ -199,8 +203,11 @@ export default defineAppConfig({
|
|||||||
actionMaximum: 1,
|
actionMaximum: 1,
|
||||||
resetMatch: 'activity',
|
resetMatch: 'activity',
|
||||||
rules:
|
rules:
|
||||||
'[text="看到这了,进吧逛逛呗"] < LinearLayout + LinearLayout ImageView[clickable=true]',
|
'TextView[text!=null] < LinearLayout + LinearLayout > View + ImageView[clickable=true]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/13322337',
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/import/13322337',
|
||||||
|
'https://i.gkd.li/import/13328738',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user