Coder Social home page Coder Social logo

yangnak / ehsyringe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ehtagtranslation/ehsyringe

0.0 0.0 0.0 13.23 MB

E 站注射器,将中文翻译注入到 E 站体内

License: MIT License

JavaScript 3.03% TypeScript 90.58% HTML 0.14% Less 6.24%

ehsyringe's Introduction

EhSyringe

Build Status

GitHub All Releases GitHub Releases (by Asset) GitHub Releases (by Asset) GitHub Releases (by Asset)

E 站注射器,将中文翻译注入到 E 站体内。

这一针打下去你就会说中文了。

image

安装

Chrome 安装方法

  1. 前往 Release 页面下载 zip 文件并解压
  2. 打开 Chrome 扩展程序管理器 chrome://extensions
  3. 勾选 开发者模式
  4. 点击 加载已解压的扩展程序,选择本扩展所在目录

Firefox 安装方法

  1. 前往 Release 页面下载 xpi 文件
  2. 安装 Firefox 的延长支持版(ESR)开发者版Nightly 版
  3. 打开 Firefox 配置编辑器(about:config 页),搜索 xpinstall.signatures.required 并将值设置为 false
  4. 打开 Firefox 附加组件管理器 about:addons,点击右上角设置菜单,选择“从文件安装附加组件”,选择下载的 xpi 文件

参考 Firefox 中的附加组件签名

用户脚本(UserScript)安装方法

  1. 安装一个用户脚本管理器
  2. 前往 Sleazy Fork 安装最新版本

也可以从 GitHub Release 安装

如果你使用的是 Via、Alook 等对用户脚本支持不完善的浏览器,可以考虑使用以下代码加载插件

(function () {
    if (/(^|\.)e[-x]hentai\.org$/i.test(location.hostname) && !document.getElementById('EhSyringe-Script')) {
        var script = document.createElement('script');
        script.id = 'EhSyringe-Script';
        script.src = 'https://sleazyfork.org/scripts/407833-ehsyringe/code/EhSyringe.user.js';
        document.documentElement.append(script);
    }
})();

功能

  • 全站翻译(大部分)
  • TAG 翻译
  • TAG 介绍
  • TAG 翻译数据更新(当前数据库包含 all 条标签翻译)
  • 搜索框 TAG 输入提示
  • 支持 Via、Alook 等支持自定义脚本的手机浏览器

特点

  • 兼容 E-Hentai-Downloader 及熊猫书签
  • 在加载 DOM 过程替换翻译, 页面加载完直接是中文不会闪烁

截图预览

搜索列表 详情页(标签描述)
搜索提示/补全 标签数据更新

小工具

开发

开发指南

  • UI 翻译位于 src/services/ui-translation/data

发布新版本

  1. 编辑 CHANGELOG.md 并添加至 git 暂存区
  2. 运行 yarn version 更新版本号
  3. 运行 git push --follow-tags 推送新版本
  4. 等待 GitHub Actions 自动编译并发布新版本

ehsyringe's People

Contributors

opportunityliu avatar dependabot-preview[bot] avatar xioxin avatar dependabot[bot] avatar xb2016 avatar liuxilu avatar mapaler avatar matcha-sama avatar jiaer24 avatar ghostmuker avatar tch1121 avatar

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.