Skip to content

Commit

Permalink
feat: 规则维护更新 (#251)
Browse files Browse the repository at this point in the history
* feat(微博轻享版): 信息流广告

* feat(百度贴吧): 广告弹窗

* feat(阿里云盘): 更新提示

* feat(哔哩哔哩): 视频卡片广告

* chore(actions): check_format_lint

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
aoguai and github-actions[bot] authored Aug 22, 2024
1 parent c861ddd commit 3f03a0b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/apps/com.alicloud.databox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export default defineGkdApp({
activityIds: 'com.alicloud.databox.MainActivity',
rules: [
{
matches: '[text^="立即了解"] -3 View[clickable=true]',
matches:
'[text^="立即了解"] -3 @View[clickable=true] <<n [vid="webContainer"]',
snapshotUrls: 'https://i.gkd.li/import/13806865',
},
],
Expand Down
14 changes: 10 additions & 4 deletions src/apps/com.baidu.tieba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default defineGkdApp({
matches:
'View[childCount=3] > @View[clickable=true][childCount=1] > Image',
snapshotUrls: [
'https://i.gkd.li/import/13060891', // activityIds: com.baidu.tbadk.browser.TBWebContainerActivity
'https://i.gkd.li/import/13060891',
'https://i.gkd.li/import/13222361', // childCount=1否则误触这里
],
},
Expand All @@ -144,9 +144,9 @@ export default defineGkdApp({
matches:
'@TextView[clickable=true && text=null] - FrameLayout TextView[text="广告"]',
snapshotUrls: [
'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/13328246', // activityIds: com.baidu.tieba.LogoActivity
'https://i.gkd.li/import/13168383',
'https://i.gkd.li/import/13322120',
'https://i.gkd.li/import/13328246',
],
},
{
Expand All @@ -163,6 +163,12 @@ export default defineGkdApp({
'https://i.gkd.li/i/16426630',
],
},
{
key: 3,
name: '点击正下方x关闭3',
matches: '@TextView[visibleToUser=true][text=""] -2 [text="广告"]',
snapshotUrls: 'https://i.gkd.li/i/16703244',
},
],
},
{
Expand Down
9 changes: 6 additions & 3 deletions src/apps/com.weico.international.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ export default defineGkdApp({
activityIds: [
'com.weico.international.activity.MainFragmentActivity',
'com.weico.international.ui.search.SearchActivity',
'com.weico.international.ui.detail.StatusDetailV3Activity',
],
exampleUrls:
'https://github.com/gkd-kit/subscription/assets/38517192/e713a2ca-5048-486a-874f-dd876d53c49b',
rules: [
{
key: 0,
name: '点击广告卡片右上角[x]',
matches: '[id="com.weico.international:id/item_timeline_ad_action"]',
matches: '[vid="item_timeline_ad_action"]',
snapshotUrls: [
'https://i.gkd.li/import/12505753',
'https://i.gkd.li/import/12505763',
'https://i.gkd.li/import/12857202',
'https://i.gkd.li/i/14444744',
'https://i.gkd.li/i/16667201',
],
},
{
Expand All @@ -35,6 +36,8 @@ export default defineGkdApp({
snapshotUrls: [
'https://i.gkd.li/import/12505755',
'https://i.gkd.li/import/12505764',
'https://i.gkd.li/i/14798365',
'https://i.gkd.li/i/16667202',
],
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/apps/tv.danmaku.bili.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default defineGkdApp({
key: 0,
name: '点击广告卡片右侧菜单图标',
matches:
'[(desc*="广告"||desc*="来自淘宝")&&desc*="查看"] >n * >n [id^="tv.danmaku.bili:id/more"] > ImageView',
'[(desc*="广告"||desc*="来自淘宝")&&desc*="查看"][visibleToUser=true] >n * >n [id^="tv.danmaku.bili:id/more"][visibleToUser=true] > ImageView[visibleToUser=true]',
snapshotUrls: [
'https://i.gkd.li/import/12642260', // n = 2
'https://i.gkd.li/import/12705266', // n = 3
Expand Down

0 comments on commit 3f03a0b

Please sign in to comment.