mirror of
https://gitea.redwind.top/Austin/subscription
synced 2024-11-16 17:22:21 +08:00
feat: 一些软件规则的添加和更新 (#205)
* 初步导入了每日赛车的规则 * 更新了一些软件的规则 * chore(actions): permissions * chore(actions): permissions-write-all * chore(format): change LF to CRLF * chore: revise after review * chore: 规则优化 --------- Co-authored-by: Long Miao <longmiaohez@163.com> Co-authored-by: lisonge <i@songe.li>
This commit is contained in:
parent
5fd88e4fe0
commit
3247100d89
15
src/apps/cn.ledongli.ldl.ts
Normal file
15
src/apps/cn.ledongli.ldl.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'cn.ledongli.ldl',
|
||||
name: '乐动力',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'cn.ledongli.ldl.adsdk.activity.AdsOriginalActivity',
|
||||
rules: 'TextView[text="跳过"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668468',
|
||||
},
|
||||
],
|
||||
});
|
|
@ -4,6 +4,13 @@ export default defineAppConfig({
|
|||
id: 'com.autonavi.minimap',
|
||||
name: '高德地图',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.autonavi.map.activity.NewMapActivity',
|
||||
rules: '@LinearLayout[clickable=true] > TextView[text="跳过"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12667556',
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
name: '首页-地图页面上方消息提醒',
|
||||
|
|
21
src/apps/com.gspace.android.ts
Normal file
21
src/apps/com.gspace.android.ts
Normal file
|
@ -0,0 +1,21 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'com.gspace.android',
|
||||
name: 'Gspace',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '跳过开屏广告',
|
||||
activityIds: [
|
||||
'com.gspace.android.ui.activity.SplashActivity',
|
||||
'com.gspace.android.util.ShortcutHandleActivity',
|
||||
],
|
||||
rules: '[id="com.gspace.android:id/hiad_skip_text"]',
|
||||
snapshotUrls: [
|
||||
'https://gkd-kit.gitee.io/import/12668986',
|
||||
'https://gkd-kit.gitee.io/import/12668985',
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
|
@ -4,11 +4,28 @@ export default defineAppConfig({
|
|||
id: 'com.intsig.camscanner',
|
||||
name: '扫描全能王',
|
||||
groups: [
|
||||
{
|
||||
key: -1,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.intsig.camscanner.mainmenu.mainactivity.MainActivity',
|
||||
rules: '[id="com.intsig.camscanner:id/tv_skip_ad"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668795',
|
||||
},
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏vip提示',
|
||||
activityIds: 'com.intsig.camscanner.guide.guidevideo.GuideVideoActivity',
|
||||
rules: '[id=`com.intsig.camscanner:id/tv_drop_cnl_close_new`]',
|
||||
// need snapshot
|
||||
},
|
||||
|
||||
{
|
||||
key: 1,
|
||||
name: '主页面上方广告',
|
||||
activityIds: 'com.intsig.camscanner.mainmenu.mainactivity.MainActivity',
|
||||
rules:
|
||||
'[id="com.intsig.camscanner:id/card_ad_tag"] + [id="com.intsig.camscanner:id/card_close"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668813',
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
|
@ -8,8 +8,12 @@ export default defineAppConfig({
|
|||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.jingdong.app.mall.MainFrameActivity',
|
||||
rules: '[desc$="广告"] +2 [desc="跳过"] > [text="跳过"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12519430',
|
||||
rules:
|
||||
'RelativeLayout[desc="跳过"][id!=null] > TextView[text="跳过"][id!=null]',
|
||||
snapshotUrls: [
|
||||
'https://gkd-kit.gitee.io/import/12668289',
|
||||
'https://gkd-kit.gitee.io/import/12519430',
|
||||
],
|
||||
},
|
||||
{
|
||||
enable: false,
|
||||
|
|
32
src/apps/com.netease.mobimail.ts
Normal file
32
src/apps/com.netease.mobimail.ts
Normal file
|
@ -0,0 +1,32 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'com.netease.mobimail',
|
||||
name: '网易邮箱',
|
||||
groups: [
|
||||
{
|
||||
// 网易邮箱还有另一种开屏广告,想截快照的时候刷不出来,感觉是隔比较久的时间再打开才有概率出现,之后再刷
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.netease.mail.ad.launch.ui.SplashAdActivity',
|
||||
rules: '[id="com.netease.mobimail:id/ad_skip"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12667519',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '广告卡片',
|
||||
rules: [
|
||||
{
|
||||
activityIds: 'com.netease.mail.biz.main.MainITabActivity',
|
||||
matches: '[id="com.netease.mobimail:id/ad_vip"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12683488',
|
||||
},
|
||||
{
|
||||
activityIds: 'com.netease.mail.biz.main.MainITabActivity',
|
||||
matches: '[id="com.netease.mobimail:id/ll_delete"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12683511',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
31
src/apps/com.romielf.mrsc.ts
Normal file
31
src/apps/com.romielf.mrsc.ts
Normal file
|
@ -0,0 +1,31 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'com.romielf.mrsc',
|
||||
name: '每日赛车',
|
||||
groups: [
|
||||
{
|
||||
name: '开屏广告',
|
||||
key: 0,
|
||||
rules: '[id="com.byted.pangle:id/tt_splash_skip_btn"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12667534',
|
||||
},
|
||||
{
|
||||
name: '新闻页面摇一摇广告',
|
||||
key: 1,
|
||||
enable: false,
|
||||
activityIds: 'com.romielf.mrsc.MainActivity',
|
||||
desc: '点击准确率灵敏度不太高',
|
||||
rules: [
|
||||
{
|
||||
matches: '@Image < View -n View >2 View[text="广告"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12667539',
|
||||
},
|
||||
{
|
||||
matches: '[id="com.byted.pangle:id/tt_item_tv"][text="不感兴趣"]', // 字节SDK广告
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12667549',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
15
src/apps/com.taobao.idlefish.ts
Normal file
15
src/apps/com.taobao.idlefish.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'com.taobao.idlefish',
|
||||
name: '闲鱼',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.taobao.idlefish.maincontainer.activity.MainActivity',
|
||||
rules: '[id="com.taobao.idlefish:id/advert_close"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668670',
|
||||
},
|
||||
],
|
||||
});
|
|
@ -7,28 +7,30 @@ export default defineAppConfig({
|
|||
{
|
||||
key: 0,
|
||||
name: '朋友圈广告',
|
||||
desc: '朋友圈信息流广告,点击关闭按钮,确认关闭',
|
||||
desc: '点击广告卡片右上角关闭按钮出现菜单,确认关闭',
|
||||
activityIds: 'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
|
||||
exampleUrls: [
|
||||
'https://github.com/gkd-kit/subscription/assets/38517192/c9ae4bba-a748-4755-b5e4-c7ad3d489a79',
|
||||
],
|
||||
rules: [
|
||||
{
|
||||
matches: 'TextView[text*="广告"] + TextView[text="关闭该广告"]',
|
||||
// 需要快照
|
||||
},
|
||||
{
|
||||
name: '点击广告卡片右上角',
|
||||
matches: 'ImageView - TextView[text="广告"][id!=null][index=0]',
|
||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12642588'],
|
||||
},
|
||||
// 以下是[确认关闭按钮]出现的情况
|
||||
{
|
||||
matches: '[text="关闭该广告的原因"] +(2) [text="直接关闭"]',
|
||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12663984'],
|
||||
},
|
||||
{
|
||||
matches:
|
||||
'[text^="你觉得这条广告怎么样"] + FrameLayout >2 @LinearLayout[clickable=true] > [text="关闭该广告"]',
|
||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12642584'],
|
||||
},
|
||||
{
|
||||
matches: '[text="关闭该广告的原因"] +(2) [text="直接关闭"]',
|
||||
snapshotUrls: ['https://gkd-kit.gitee.io/import/12663984'],
|
||||
matches: 'TextView[text*="广告"] + TextView[text="关闭该广告"]',
|
||||
// 需要快照
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
32
src/apps/com.youdao.dict.ts
Normal file
32
src/apps/com.youdao.dict.ts
Normal file
|
@ -0,0 +1,32 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'com.youdao.dict',
|
||||
name: '网易有道词典',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.youdao.dict.activity.DictSplashActivity',
|
||||
rules: '[id="com.youdao.dict:id/skin_text"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668545',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '词条页面广告',
|
||||
activityIds: 'com.youdao.dict.activity.MainActivity',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
matches: '[text="广告"] - [id="com.youdao.dict:id/close"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668574',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
matches: '[id="com.youdao.dict:id/close_pop"][text="收起广告"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668583',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
34
src/apps/net.csdn.csdnplus.ts
Normal file
34
src/apps/net.csdn.csdnplus.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
import { defineAppConfig } from '../types';
|
||||
|
||||
export default defineAppConfig({
|
||||
id: 'net.csdn.csdnplus',
|
||||
name: 'CSDN',
|
||||
groups: [
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'net.csdn.csdnplus.activity.SplashActivity',
|
||||
rules: '[id="net.csdn.csdnplus:id/tv_skip_splashimage"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668884',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '推荐条目广告',
|
||||
activityIds: 'net.csdn.csdnplus.activity.MainActivity',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
matches:
|
||||
'TextView[text="广告"] + ImageView[id="net.csdn.csdnplus:id/iv_more"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668903',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
matches:
|
||||
'[id="net.csdn.csdnplus:id/img_feedback_title"][text="虚假广告"]',
|
||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12668923',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
Loading…
Reference in New Issue
Block a user