mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 16:54:43 +08:00
feat(豆瓣): 信息流广告、其余规则优化 (#2104)
* feat(豆瓣):信息流广告、其余规则优化 * 格式更正 * Update com.douban.frodo.ts
This commit is contained in:
@@ -49,6 +49,7 @@ export default defineAppConfig({
|
||||
key: 3,
|
||||
name: '信息流广告',
|
||||
desc: '首页动态/推荐,小组讨论列表,帖子底部,点击广告关闭后出现关闭原因底部菜单-点击不感兴趣',
|
||||
quickFind: true,
|
||||
activityIds: [
|
||||
'com.douban.frodo.activity.SplashActivity',
|
||||
'com.douban.frodo.status.activity.StatusDetailActivity',
|
||||
@@ -70,7 +71,7 @@ export default defineAppConfig({
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '点击广告卡片右上角菜单图标按钮',
|
||||
name: '首页-动态-信息流广告',
|
||||
activityIds: [
|
||||
'com.douban.frodo.activity.SplashActivity',
|
||||
'com.douban.frodo.status.activity.StatusDetailActivity',
|
||||
@@ -85,7 +86,7 @@ export default defineAppConfig({
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
name: '点击广告卡片右下角[广告]文字按钮',
|
||||
name: '帖子内容与评论区中间的卡片式广告',
|
||||
matches: '[text="广告"][id$="ad_not_interest"]',
|
||||
activityIds: [
|
||||
'com.douban.frodo.subject.structure.activity.MovieActivity',
|
||||
@@ -102,10 +103,16 @@ export default defineAppConfig({
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
name: '点击卡片中间的[广告]文字按钮',
|
||||
activityIds: ['com.douban.frodo.group.activity.GroupDetailActivity'],
|
||||
name: '小组-帖子列表信息流广告',
|
||||
activityIds: [
|
||||
'com.douban.frodo.group.activity.GroupDetailActivity',
|
||||
'com.douban.frodo.activity.SplashActivity',
|
||||
],
|
||||
matches: '[id="com.douban.frodo:id/ad_tag"][text="广告"]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/12723569',
|
||||
snapshotUrls: [
|
||||
'https://i.gkd.li/import/12723569',
|
||||
'https://i.gkd.li/import/13347455',
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -116,24 +123,30 @@ export default defineAppConfig({
|
||||
desc: '书影音-卡片广告-点击卡片右下角"广告"文字',
|
||||
// 豆瓣在屏幕之外渲染了大量节点, 在节点肉眼不可见但是无障碍可见的情况下, 仍然会触发大量点击
|
||||
// 发现增加一个较高的 cd 值可以避免后续广告节点出现, 从而不会触发点击
|
||||
quickFind: true,
|
||||
snapshotUrls: 'https://i.gkd.li/import/12548160',
|
||||
activityIds: 'com.douban.frodo.activity.SplashActivity',
|
||||
rules: [
|
||||
{
|
||||
matches:
|
||||
'[text="广告"] < * + * > [text="不感兴趣"][visibleToUser=true]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/12548116',
|
||||
},
|
||||
{
|
||||
key: 0,
|
||||
name: '点击【广告】',
|
||||
matches:
|
||||
'@View[clickable=true] > Image - TextView[text="广告"][visibleToUser=true]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/12548131',
|
||||
},
|
||||
{
|
||||
preKeys: 0,
|
||||
name: '点击【不感兴趣】',
|
||||
matches:
|
||||
'[text="广告"] < * + * > [text="不感兴趣"][visibleToUser=true]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/12548116',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
name: '关闭评分反馈弹窗',
|
||||
quickFind: true,
|
||||
activityIds: 'com.douban.frodo.activity.SplashActivity',
|
||||
rules: {
|
||||
matches: '[text="下次再说"][id="com.douban.frodo:id/neutral"]',
|
||||
|
||||
Reference in New Issue
Block a user