mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 01:04:53 +08:00
commit a0d8ef2dd441cf563a3bdc2761a5c15386a28bbd Author: aisouler <zy43220@gmail.com> Date: Fri Jan 26 16:57:54 2024 +0800 Update com.huawei.browser.ts commit 1f4a7cc76dfc4a86945022089fd61a14f8a93547 Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Date: Sat Jan 20 12:06:02 2024 +0000 chore(actions): check_format_lint commit 48583417c0b50a5597c911668d50dc9df65f0459 Author: aisouler <zy43220@gmail.com> Date: Sat Jan 20 20:05:20 2024 +0800 feat(浏览器):卡片广告
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.huawei.browser',
|
|
name: '华为浏览器',
|
|
groups: [
|
|
{
|
|
key: 0,
|
|
name: '开屏广告',
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
rules: [
|
|
{
|
|
matches: '[id$="/hiad_skip_text"]',
|
|
action: 'clickCenter',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12681995',
|
|
'https://i.gkd.li/import/13403785',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '通知提示-开启资讯通知弹窗',
|
|
desc: '关闭资讯通知后,总是弹窗让打开',
|
|
rules: [
|
|
{
|
|
activityIds: 'com.huawei.browser.BrowserMainActivity',
|
|
matches: '[id="com.huawei.browser:id/close_push_guide_window"]',
|
|
exampleUrls:
|
|
'https://m.gkd.li/87047583/3982b64a-15a7-4c0c-b179-2ed82d6ea18e',
|
|
snapshotUrls: 'https://i.gkd.li/import/13692404',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '局部广告-卡片广告',
|
|
desc: '点击X',
|
|
rules: [
|
|
{
|
|
activityIds:
|
|
'com.huawei.browser.customtab.EmuiBrowserCustomTabActivity',
|
|
matches:
|
|
'View[id="root"] > View[index=1] > View[id="logo-close-btn"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13997759',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|