Files
AIsouler-GKD_subscription/src/apps/com.huawei.hwid.ts
lyc452 afff0c3b3c feat(HMS Core): 开屏广告 (#2714)
* Add files via upload

* chore(actions): check_format_lint

* feat(HMS Core): 开屏广告

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: 二刺螈 <i@songe.li>
2023-12-03 17:43:46 +08:00

37 lines
922 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.huawei.hwid',
name: 'HMS Core',
groups: [
{
key: -1,
name: '开屏广告',
resetMatch: 'app',
matchTime: 10000,
actionMaximum: 1,
quickFind: true,
rules: [
{
matches: '[id="com.huawei.hwid:id/hiad_skip_text"]',
snapshotUrls: ['https://i.gkd.li/import/13520462'],
},
],
},
{
// 我不知道这个广告从哪里来的它出乎意料地跳出并覆盖在Gspace上面
key: 0,
name: '页面中间跳出广告',
activityIds: [
'com.huawei.openalliance.ad.ppskit.activity.InnerPPSInterstitialAdActivity',
],
rules: [
{
matches: '[id="com.huawei.hwid:id/interstitial_close"]',
snapshotUrls: ['https://i.gkd.li/import/12709068'],
},
],
},
],
});