Coder Social home page Coder Social logo

mtool_cracker's Introduction

MTool

鬼才琪露诺 开发的一款超赞工具, 置顶下载贴release.php.

请在 Patreon爱发电 支持原作者.

MTool Cracker

本地拦截处理所有请求, 包括翻译功能. 翻译功能在本地实现, 目前实现了百度、腾讯翻译的接口.

你也可以自己实现其他翻译 API 的接口, 欢迎提交 PR.


获取

git clone / 下载此仓储的压缩包 / 在 Release 中下载; 在项目根目录下运行:

npm install # 安装依赖

请到此处 Release 下载老版本的 Mtool 存档 MTool_A10U13.7zMTool_A10_Fix5.7z

配置

  • 更改 hosts (C:\Windows\System32\drivers\etc\hosts), 添加一行:
127.0.0.1 trs.cirno.biz
  • 替换文件 example.env 内的 APPIDKEY 为你申请的应用信息, 百度翻译开放平台能找到. 替换后保存, 重命名此文件为 working.env. / 使用腾讯翻译则为 TENCENTIDTENCENTKEY(强烈建议用腾讯翻译,开通机器翻译后到API 密钥管理查看SecretIdSecretKey).

  • 证书:进入 certs 文件夹,该文件夹下有一个 mkcert-v1.4.4-xxx.exe,如果你运行不了或者怕病毒,可以去 https://github.com/FiloSottile/mkcert/releases 下载一个。在此文件夹打开命令行(Shift+右键,打开 Powershell),然后运行下面的命令:

mkcert-v1.4.4-windows-amd64.exe trs.cirno.biz
mkcert-v1.4.4-windows-amd64.exe -install

命令会在文件夹中生成 trs.cirno.biz.pemtrs.cirno.biz-key.pem,代码中已经正确引用该文件名。另外在 -install 时会弹窗,点确定即可,这是为了 windows 能信任该证书。

运行服务

npm start   # 先配置好再运行服务

服务启动完成打开工具 nw.exe.


副作用

  • 因为更改了 hosts, 后续无法访问作者的网站, 要访问得 删除/注释 之前加入的那行.
  • 未来作者可能会更改程序, 所以此项目 不一定适用 于最新版.

开发

你也可以自己写一个其他翻译接口的方法 (DeepL, 必应, Google 等...) 到 src/sdk.js, 然后更改 src/translator.js 内的翻译方法为你定义的.

声明

  • 此项目仅供学习使用
  • 使用此项目造成的后果由使用者自行承担
  • 不允许宣传本项目
  • 使用本项目请尽可能 支持原作者

mtool_cracker's People

Contributors

symant233 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mtool_cracker's Issues

没找到腾讯翻译接口,是要自己写吗?

我看简介上有写翻译借口但是我找不到,还是要自己写吗,没怎么接触过代码,感觉有点难度,可以给一个大概的教学吗,我用的彩云没有百度翻译接口那么复杂。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.