mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-24 02:35:25 +08:00
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
import { defineGkdApp } from '@gkd-kit/define';
|
|
|
|
export default defineGkdApp({
|
|
id: 'com.reddit.frontpage',
|
|
name: 'Reddit',
|
|
groups: [
|
|
{
|
|
key: 3,
|
|
name: '其他-关闭订阅社区消息提示',
|
|
desc: '自动点击[Not Now]',
|
|
fastQuery: true,
|
|
rules: [
|
|
{
|
|
activityIds: 'com.reddit.launch.main.MainActivity',
|
|
matches:
|
|
'[vid="sheet_container"] > [vid="cancel_button"][text="Not Now"][clickable=true]',
|
|
exampleUrls: 'https://e.gkd.li/b640f2c9-4564-420f-8a2f-20f461032f3d',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/i/13649914',
|
|
'https://i.gkd.li/i/17269009',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 4,
|
|
name: '其他-NSFW 内容提示',
|
|
desc: '自动点击 continue',
|
|
fastQuery: true,
|
|
rules: [
|
|
{
|
|
activityIds: 'com.reddit.launch.main.MainActivity',
|
|
matches: 'Button[text="Cancel"] + Button[text="Continue"]',
|
|
snapshotUrls: 'https://i.gkd.li/i/13649992',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 5,
|
|
name: '功能类-自动点击翻译',
|
|
rules: [
|
|
{
|
|
fastQuery: true,
|
|
activityIds: 'com.reddit.launch.main.MainActivity',
|
|
matches:
|
|
'@[id="translation_banner_action"][clickable=true] > [visibleToUser=true][text="翻译"] <<n [vid="fragment_pager"]',
|
|
exampleUrls: 'https://e.gkd.li/8fcef25c-ff16-4456-8174-cac27aa7fc66',
|
|
snapshotUrls: 'https://i.gkd.li/i/22451437',
|
|
excludeSnapshotUrls: 'https://i.gkd.li/i/22451467',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|