mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 16:54:43 +08:00
feat(哈工大): 开屏页面 (#352)
* feat: 哈工大APP-开屏页面(虽然除了本校生应该没人用) * feat: 哈工大APP-开屏页面(虽然除了本校生应该没人用)
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
## 开始
|
## 开始
|
||||||
|
|
||||||
首先我们需要给需要添加规则的APP打快照, 也就是把APP的广告截图节点信息给保存下来 <https://gkd-kit.gitee.io/import/12505276>
|
首先我们需要给需要添加规则的APP打快照, 也就是把APP的广告截图节点信息给保存下来 <https://gkd-kit.gitee.io/import/12505276> (如何获取这个链接将在审查快照这一步说明)
|
||||||
|
|
||||||
首先打开APP-主页 -允许无障碍授权
|
首先打开APP-主页 -允许无障碍授权
|
||||||
|
|
||||||
@@ -86,6 +86,7 @@ Android>=11 的无障碍可以自己截屏, 所以如果你的设备不满足 An
|
|||||||
了解完了之后, 编写的选择器也很简单 `[id="com.mopub.ad.xiaomi:id/nativeclose"]`
|
了解完了之后, 编写的选择器也很简单 `[id="com.mopub.ad.xiaomi:id/nativeclose"]`
|
||||||
|
|
||||||
接下来测试这个选择器能否选中这个图标按钮, 点击审查工具的 选择器查询, 输入刚刚这个规则, 然后点击查询
|
接下来测试这个选择器能否选中这个图标按钮, 点击审查工具的 选择器查询, 输入刚刚这个规则, 然后点击查询
|
||||||
|
`这里点击右侧的分享-生成链接-zip才能获取快照链接(以/import/开头)`
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
@@ -132,7 +133,7 @@ Android>=11 的无障碍可以自己截屏, 所以如果你的设备不满足 An
|
|||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
matches: '[text="关闭当前广告"]',
|
matches: '[text="关闭当前广告"]',
|
||||||
snapshotUrls: 'https://gkd-kit.gitee.io/import/12505365',
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12505365',//获取链接的方法在上一步有说明
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
matches: '[id$="/nativeclose"]',
|
matches: '[id$="/nativeclose"]',
|
||||||
|
|||||||
19
src/apps/cn.edu.hit.welink.ts
Normal file
19
src/apps/cn.edu.hit.welink.ts
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
import { defineAppConfig } from '../types';
|
||||||
|
|
||||||
|
export default defineAppConfig({
|
||||||
|
id: 'cn.edu.hit.welink',
|
||||||
|
name: '哈工大APP',
|
||||||
|
groups: [
|
||||||
|
{
|
||||||
|
key: 1,
|
||||||
|
name: '开屏广告',
|
||||||
|
activityIds: ['huawei.w3.ui.welcome.W3SplashScreenActivity'],
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
matches: '[id="cn.edu.hit.welink:id/skip_button"]',
|
||||||
|
snapshotUrls: 'https://gkd-kit.gitee.io/import/12710980',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user