mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-22 09:45:11 +08:00
feat(抖音): 优化规则
This commit is contained in:
@@ -3,6 +3,7 @@ import { defineAppConfig } from '../types';
|
|||||||
export default defineAppConfig({
|
export default defineAppConfig({
|
||||||
id: 'com.ss.android.ugc.aweme',
|
id: 'com.ss.android.ugc.aweme',
|
||||||
name: '抖音',
|
name: '抖音',
|
||||||
|
deprecatedKeys: [2],
|
||||||
groups: [
|
groups: [
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
@@ -26,46 +27,55 @@ export default defineAppConfig({
|
|||||||
name: '局部广告-关闭用户推荐',
|
name: '局部广告-关闭用户推荐',
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
key: 0,
|
||||||
matches:
|
|
||||||
'[id="com.ss.android.ugc.aweme:id/desc"][text="减少此类推荐"]',
|
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12520962',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
||||||
matches:
|
matches:
|
||||||
'[text="换一个"] - FrameLayout[clickable=true] > ImageView[clickable=true]',
|
'[text="换一个"] - FrameLayout[clickable=true] > ImageView[clickable=true]',
|
||||||
snapshotUrls: ['https://i.gkd.li/i/12520943'],
|
snapshotUrls: ['https://i.gkd.li/i/12520943'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
preKeys: 0,
|
||||||
|
key: 1,
|
||||||
|
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
||||||
|
matches:
|
||||||
|
'[id="com.ss.android.ugc.aweme:id/desc"][text="减少此类推荐"]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/i/12520962',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 2,
|
||||||
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
||||||
matches:
|
matches:
|
||||||
'[text="你可能感兴趣"] < LinearLayout + [text="隐藏"][clickable=true]',
|
'[text="你可能感兴趣"] < LinearLayout + [text="隐藏"][clickable=true]',
|
||||||
snapshotUrls: ['https://i.gkd.li/i/12675396'],
|
snapshotUrls: ['https://i.gkd.li/i/12675396'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
key: 3,
|
||||||
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
||||||
matches: '[text="朋友推荐"] +(2) @FrameLayout > [desc="不感兴趣"]',
|
matches: '[text="朋友推荐"] +(2) @FrameLayout > [desc="不感兴趣"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12675129',
|
snapshotUrls: 'https://i.gkd.li/i/12675129',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
key: 4,
|
||||||
activityIds:
|
activityIds:
|
||||||
'com.ss.android.ugc.aweme.friends.ui.RawAddFriendsActivity',
|
'com.ss.android.ugc.aweme.friends.ui.RawAddFriendsActivity',
|
||||||
matches:
|
matches:
|
||||||
'[text="朋友推荐"] < LinearLayout + FrameLayout > [desc="关闭"][clickable=true]',
|
'[text="朋友推荐"] < LinearLayout + FrameLayout > [desc="关闭"][clickable=true]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/12675245',
|
snapshotUrls: 'https://i.gkd.li/i/12675245',
|
||||||
},
|
},
|
||||||
],
|
{
|
||||||
},
|
key: 5,
|
||||||
{
|
activityIds: [
|
||||||
key: 2,
|
'com.ss.android.ugc.aweme.main.MainActivity',
|
||||||
quickFind: true,
|
'com.miui.home.launcher.Launcher',
|
||||||
activityIds: ['com.ss.android.ugc.aweme.main.MainActivity'],
|
],
|
||||||
name: '全屏广告-关闭朋友推荐弹窗',
|
name: '全屏广告-关闭朋友推荐弹窗',
|
||||||
rules: '[text="朋友推荐"] +2 [id="com.ss.android.ugc.aweme:id/close"]',
|
matches:
|
||||||
snapshotUrls: [
|
'[text="朋友推荐"] +2 [id="com.ss.android.ugc.aweme:id/close"]',
|
||||||
'https://i.gkd.li/i/12525387',
|
snapshotUrls: [
|
||||||
'https://i.gkd.li/i/12525389',
|
'https://i.gkd.li/i/12525387',
|
||||||
|
'https://i.gkd.li/i/12525389',
|
||||||
|
],
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -91,6 +101,7 @@ export default defineAppConfig({
|
|||||||
{
|
{
|
||||||
key: 5,
|
key: 5,
|
||||||
name: '全屏广告-广告弹窗',
|
name: '全屏广告-广告弹窗',
|
||||||
|
activityIds: 'com.android.launcher.Launcher',
|
||||||
quickFind: true,
|
quickFind: true,
|
||||||
rules:
|
rules:
|
||||||
'[id="android:id/content"] >2 RelativeLayout[childCount<=5] > @ImageView[clickable=true][id!=null] - TextView[text="广告"][id!=null]',
|
'[id="android:id/content"] >2 RelativeLayout[childCount<=5] > @ImageView[clickable=true][id!=null] - TextView[text="广告"][id!=null]',
|
||||||
@@ -219,6 +230,7 @@ export default defineAppConfig({
|
|||||||
key: 15,
|
key: 15,
|
||||||
name: '全屏广告-关闭商城推荐',
|
name: '全屏广告-关闭商城推荐',
|
||||||
desc: '点击"不感兴趣"',
|
desc: '点击"不感兴趣"',
|
||||||
|
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
|
||||||
rules: '@[text="不感兴趣"][clickable=true] + [text="去商城搜索更多"]',
|
rules: '@[text="不感兴趣"][clickable=true] + [text="去商城搜索更多"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/i/13800207',
|
snapshotUrls: 'https://i.gkd.li/i/13800207',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user