mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 01:04:53 +08:00
feat(X): 信息流广告 (#623)
* 新创建 App 规则 * feat(X): 信息流广告-规则优化 --------- Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
37
src/apps/com.twitter.android.ts
Normal file
37
src/apps/com.twitter.android.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'com.twitter.android',
|
||||
name: 'X(推特)',
|
||||
groups: [
|
||||
{
|
||||
key: 1,
|
||||
name: '信息流广告',
|
||||
activityIds: 'com.twitter.app.main.MainActivity',
|
||||
rules: [
|
||||
{
|
||||
name: '视频广告',
|
||||
key: 0,
|
||||
matches:
|
||||
'@[id="com.twitter.android:id/tweet_curation_action"] <2 LinearLayout + LinearLayout >n [id="com.twitter.android:id/upper_video_attribution"][text="视频将在广告后播放"]',
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12798795',
|
||||
},
|
||||
{
|
||||
name: '推荐广告',
|
||||
key: 1,
|
||||
matches:
|
||||
'@[id="com.twitter.android:id/tweet_curation_action"] <2 * + [id="com.twitter.android:id/tweet_auto_playable_content_parent"] > [id="com.twitter.android:id/tweet_promoted_badge_bottom"][text="推荐"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12813235',
|
||||
},
|
||||
{
|
||||
name: '点击屏蔽',
|
||||
preKeys: [0, 1],
|
||||
key: 2,
|
||||
matches:
|
||||
'@ViewGroup > [id="com.twitter.android:id/action_sheet_item_title"][text^="屏蔽"]', // 点击“我不喜欢”会返回主页,应当点击“屏蔽”。https://github.com/gkd-kit/subscription/issues/609#issuecomment-1745172531
|
||||
snapshotUrls: 'https://gkd-kit.songe.li/import/12798810',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user