Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import moe.ono.util.SyncUtils
@SuppressLint("DiscouragedApi")
@HookItem(
path = "聊天与消息/快捷菜单",
description = "点击聊天页面下方 ONO 图标调出快捷菜单,部分功能依赖此选项,推荐开启"
description = "点击聊天页面下方 ONO 图标调出快捷菜单,部分功能依赖此选项,推荐开启\n* 重启生效"
)
class BottomShortcutMenu : BaseSwitchFunctionHookItem() {
private val classNames: List<String> = mutableListOf(
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/moe/ono/hooks/item/chat/QQBubbleRedirect.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ class QQBubbleRedirect : BaseClickableFunctionHookItem() {
}
}

} catch (t: NoSuchMethodError) {
val mI: Method = findMethodExact("com.tencent.mobileqq.bubble.BubbleManager".clazz,
"J", String::class.java)

hookBefore(mI) {
val cacheFile = File(CACHE_FILE)
if (cacheFile.exists()) {
it.args[0] = CACHE_FILE
}
}
} catch (t: Throwable) {
Logger.e("QQBubbleRedirect", t)
}
Expand Down
10 changes: 9 additions & 1 deletion app/src/main/java/moe/ono/hooks/item/profile/ProfileCardMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ProfileCardMenu : BaseSwitchFunctionHookItem() {
.hasShadowBg(false)
.atView(v)
.asAttachList(
arrayOf("查看等级", "尝试获取详细信息"),
arrayOf("查看等级", "尝试获取详细信息", "查找共同群"),
intArrayOf(),
object : OnSelectListener {
override fun onSelect(position: Int, t: String) {
Expand Down Expand Up @@ -196,6 +196,14 @@ class ProfileCardMenu : BaseSwitchFunctionHookItem() {

}.start()
}

2 -> {
Utils.jump(
v,
this.hashCode(),
"https://ti.qq.com/friends/recall?uin=$QQ"
)
}
}
}
})
Expand Down