Convert Figma logo to code with AI

sunnyyoung logoWeChatTweak-macOS

A dynamic library tweak for WeChat macOS - 首款微信 macOS 客户端撤回拦截与多开 🔨

11,052
1,372
11,052
122

Top Related Projects

Mac微信功能拓展/微信插件/微信小助手(A plugin for Mac WeChat)

微信小助手的安装 / 更新工具。

Quick Overview

WeChatTweak-macOS is a tweak for the macOS version of WeChat, a popular Chinese messaging app. It adds various features and enhancements to improve the user experience, such as preventing message revocation, enabling multiple instances, and adding a dark mode.

Pros

  • Adds useful features not available in the official WeChat macOS client
  • Allows users to run multiple WeChat instances simultaneously
  • Provides a dark mode option for better visibility in low-light environments
  • Prevents message revocation, allowing users to see deleted messages

Cons

  • May violate WeChat's terms of service, potentially risking account suspension
  • Requires modification of the WeChat application, which could lead to security risks
  • May become incompatible with future WeChat updates, requiring frequent maintenance
  • Not officially supported by WeChat, so users may encounter stability issues

Getting Started

  1. Download the latest release from the GitHub releases page.
  2. Quit WeChat if it's running.
  3. Run the installer package (WeChatTweak-macOS-x.x.x.pkg).
  4. Launch WeChat and enjoy the new features.

Note: Make sure to check the project's README for any additional instructions or requirements specific to your macOS version.

Competitor Comparisons

Mac微信功能拓展/微信插件/微信小助手(A plugin for Mac WeChat)

Pros of WeChatExtension-ForMac

  • More comprehensive feature set, including message recall prevention and custom reply
  • Active development with frequent updates and bug fixes
  • Larger community and more extensive documentation

Cons of WeChatExtension-ForMac

  • Potentially more complex to install and configure
  • May have a higher impact on system resources due to additional features
  • Some users report occasional stability issues with newer WeChat versions

Code Comparison

WeChatTweak-macOS:

- (void)hook_sendLogoutCGIWithCompletion:(id)completion {
    [self hook_sendLogoutCGIWithCompletion:nil];
}

WeChatExtension-ForMac:

- (void)hook_onLogOut {
    if (![[TKWeChatPluginConfig sharedConfig] preventRevokeEnable]) {
        [self hook_onLogOut];
        return;
    }
    // Custom logout handling
}

Both projects use method swizzling to modify WeChat's behavior, but WeChatExtension-ForMac's implementation is more extensive and configurable.

微信小助手的安装 / 更新工具。

Pros of oh-my-wechat

  • Easier installation process with a simple command-line interface
  • Automatic updates for both the tool and WeChat patches
  • Supports multiple WeChat versions and provides version management

Cons of oh-my-wechat

  • Less customization options compared to WeChatTweak-macOS
  • May have compatibility issues with certain macOS versions
  • Requires command-line knowledge, which might be challenging for some users

Code Comparison

WeChatTweak-macOS:

- (void)hook_didLoginWithResponse:(id)arg1 {
    %orig;
    [self initializeMultipleInstances];
}

oh-my-wechat:

async function installWeChatTweak() {
  const tweakVersion = await getLatestTweakVersion()
  await downloadAndInstallTweak(tweakVersion)
}

The code snippets show different approaches:

  • WeChatTweak-macOS uses Objective-C and focuses on hooking into WeChat's login process
  • oh-my-wechat uses JavaScript and emphasizes the installation and update process of the tweak itself

Both projects aim to enhance WeChat functionality on macOS, but they differ in implementation and focus. WeChatTweak-macOS provides more direct modifications to WeChat, while oh-my-wechat offers a user-friendly management tool for applying and updating tweaks.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

WeChatTweak-macOS

License README README README

微信 macOS 客户端增强 Tweak 动态库。

Overview

功能

  • 阻止消息撤回
    • 消息列表通知
    • 系统通知
    • 正常撤回自己发出的消息
  • 客户端无限多开
    • 右键 Dock icon 登录新的微信账号
    • 命令行执行:open -n /Applications/WeChat.app
  • 消息处理增强
    • 支持任意表情导出
    • 支持二维码识别
    • 支持右键直接复制链接
    • 支持由系统默认浏览器直接打开
  • 重新打开应用无需手机认证(官方已经支持)
  • UI界面设置面板
  • 支持 Raycast extension
  • 支持 Alfred workflow
  • 支持 Launchbar action

使用

**首次使用**安装 WeChatTweak-CLI:

brew install sunnyyoung/repo/wechattweak-cli

安装/更新/卸载 Tweak:

sudo wechattweak-cli install   # 安装/更新
sudo wechattweak-cli uninstall # 卸载

FAQ

  • 安装失败?
    1. 请检查本地网络是否畅通。
    2. 请检查是否安装了最新版本 WeChat 客户端,官网 & App Store 版本均可尝试。
    3. 请检查 Terminal app 是否有正确的权限配置。
  • 功能失效?
    请提交 issue 然后等待,或提交 pull request 一起发电。
  • Issue 没有响应 or 回复?
    开源项目,用爱发电,耐心等。
  • 兼容旧版本客户端吗?
    不,为了降低维护成本和保证更新速度,默认只支持**最新**版本客户端。
  • 会封号吗?
    在只使用该工具的情况下没有出现过封号/风险提示,若有**使用过其他同类工具**则有可能会出现封号/风险提示,因此风险自负。
  • 安装出现 codesign_allocate helper tool cannot be found or used 错误?
    该错误为系统问题,暂未清楚原因,一般情况下重新执行安装操作即可。
  • 安装完打开微信客户端提示 没有权限打开应用程序?
    先卸载,再重新安装一次即可,如仍无法解决请重启电脑。实在搞不定的,到 issues 里找找类似问题并尝试解决。
  • 截图失效?
    系统偏好设置 -> 隐私 -> 删除微信并重新添加 -> 重启微信客户端。
  • 出现“WeChat.app” cannot be opened because the developer cannot be verified.怎么办?
    进入 WeChat.app 所在目录,通过右键菜单打开。
  • 理性讨论。

参考

贡献者

This project exists thanks to all the people who contribute. [Contribute].

Contributors

License

The Apache License 2.0.