forked from ferredoxin/QNotified
-
Notifications
You must be signed in to change notification settings - Fork 0
/
QQConfigTable.kt
101 lines (91 loc) · 3.26 KB
/
QQConfigTable.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
* QNotified - An Xposed module for QQ/TIM
* Copyright (C) 2019-2022 [email protected]
* https://github.com/ferredoxin/QNotified
*
* This software is non-free but opensource software: you can redistribute it
* and/or modify it under the terms of the GNU Affero General Public License
* as published by the Free Software Foundation; either
* version 3 of the License, or any later version and our eula as published
* by ferredoxin.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* and eula along with this software. If not, see
* <https://www.gnu.org/licenses/>
* <https://github.com/ferredoxin/QNotified/blob/master/LICENSE.md>.
*/
package me.singleneuron.qn_kernel.tlb
import cc.ioctl.hook.ReplyNoAtHook
import cc.ioctl.hook.VasProfileAntiCrash
import me.ketal.hook.SortAtPanel
import me.kyuubiran.hook.RemovePlayTogether
import me.kyuubiran.hook.SimplifyQQSettingMe
import nil.nadph.qnotified.util.QQVersion.*
import xyz.nextalone.hook.ChatWordsCount
class QQConfigTable : ConfigTableInterface {
override val configs: Map<String?, Map<Long, Any>> = mapOf(
)
override val rangingConfigs: Map<String?, Map<Long, Any>> = mapOf(
ReplyNoAtHook::class.java.simpleName to mapOf(
QQ_8_1_3 to "k",
QQ_8_1_5 to "l",
QQ_8_2_6 to "m",
QQ_8_3_6 to "n",
QQ_8_4_8 to "createAtMsg",
QQ_8_5_5 to "l",
QQ_8_6_0 to "__NOT_USED__",
),
ChatWordsCount::class.java.simpleName to mapOf(
QQ_8_5_0 to "ivc",
QQ_8_6_5 to "mvm",
QQ_8_7_0 to "mxh",
QQ_8_7_5 to "mxn",
QQ_8_8_0 to "mxz",
QQ_8_8_3 to "myn",
QQ_8_8_20 to "n87",
QQ_8_8_23 to "n_d",
QQ_8_8_33 to "nbn",
QQ_8_8_35 to "nci",
QQ_8_8_38 to "ncy",
QQ_8_8_50 to "nf4",
QQ_8_8_68 to "nm7",
),
VasProfileAntiCrash::class.java.simpleName to mapOf(
QQ_8_4_1 to "azfl",
QQ_8_4_5 to "azxy",
QQ_8_4_8 to "aymn",
QQ_8_4_10 to "Y",
QQ_8_5_0 to "com.tencent.mobileqq.profile.ProfileCardTemplate",
QQ_8_6_0 to "com.tencent.mobileqq.profilecard.vas.component.template.VasProfileTemplateComponent",
),
//中间部分(QQ会员 我的钱包等)
SimplifyQQSettingMe.MidContentName to mapOf(
QQ_8_4_1 to "k",
QQ_8_6_0 to "n",
QQ_8_6_5 to "c",
QQ_8_7_0 to "b",
QQ_8_8_11 to "R",
QQ_8_8_17 to "S"
),
SortAtPanel.sessionInfoTroopUin to mapOf(
QQ_8_4_1 to "a",
QQ_8_8_11 to "b",
),
// 打卡
RemovePlayTogether.ClockInEntryHelper to mapOf(
QQ_8_4_8 to "d",
QQ_8_8_20 to "f",
),
// 一起嗨
RemovePlayTogether.TogetherControlHelper to mapOf(
QQ_8_4_1 to "h",
QQ_8_4_8 to "g",
QQ_8_8_20 to "n"
)
)
}