Skip to content

Narga/King-Translator-AI-UserScripts

 
 

Repository files navigation

King Translator AI - Versatile AI-Powered Translation Tool

Version Status License

Translator AI Logo
Intelligent AI-powered translation tool (Google Gemini) for browsers

If you like this userscript, please give this repository a star!✨

📖 Table of Contents

🌟 Introduction

  • Translator AI is an innovative AI-integrated translation userscript that allows users to effortlessly translate text, images, media, and web pages directly in their browser. It utilizes the Google Gemini API to deliver high-quality translation results.
  • This tool supports a variety of functions, including text translation, image translation, audio and video translation, and notably, manga translation with overlay text, enabling users to conveniently experience content in their desired language.

📸 Screenshots

📱 Mobile

Click to view

💻 PC

Click to view

✨ Features

📝 Text Translation

  • Quick translation when text is highlighted
  • Popup translation with an attractive interface
  • Advanced translation with vocabulary analysis
  • Automatic translation in input fields

🖼️ Image Translation (OCR)

  • Translate image files from your computer
  • Capture and translate screenshots
  • Translate images on the web
  • Manga translation with overlay text

🎵 Media Translation

  • Supports audio files (MP3, WAV, OGG,...)
  • Supports video files (MP4, WEBM,...)
  • Automatically generate SRT subtitles

🌐 Website Translation

  • Translate entire web pages
  • Automatically detect language
  • Translate HTML and PDF files
  • Exclude specific elements as options

🔧 Detailed Installation Guide

Step 1: Install Script Manager Extension

  • Firefox (Recommended):

    • Install Violentmonkey (Open source, recommended) or Tampermonkey
    • Open Firefox Add-ons and click "Add to Firefox"
  • Chrome:

    • Install Violentmonkey or Tampermonkey from the Chrome Web Store
    • Click "Add to Chrome"

Step 2: Obtain Gemini API Key

  1. Visit Google AI Studio
  2. Sign in with Google
  3. Click "Create API Key"
  4. Copy the API key

Step 3: Install the Script

  1. Click the Violentmonkey icon
  2. Go to Dashboard > Utilities
  3. Paste the script link into "Install from URL" (script link at the end of this document)
  4. Confirm the installation

Step 4: Configuration

  1. Open settings (Alt + S or tap 4 fingers)
  2. Choose Gemini as the provider
  3. Enter the API key
  4. Save the settings

📚 Detailed Usage Instructions

Text Translation

  1. Highlight the text to be translated
  2. Choose the type of translation:
    • Single click: Quick translation
    • Double click: Popup translation
    • Hold click: Advanced translation

Input Translation

  • 🌐 : Translate to target language
  • 🔄 : Translate to source language
  • Alt + T: Quick translation

Translation Tools

Click "Translation Tools" in the bottom right of the screen:

  • Translate Page
  • Translate Image/OCR
  • Translate Media
  • Translate File

⌨️ Shortcuts

Shortcut Function
Alt + F Translate page
Alt + Q Quick translation
Alt + E Popup translation
Alt + A Advanced translation
Alt + T Translate input
Alt + S Open settings

📱 Touch (Mobile)

Gesture Function
2 fingers Popup translation
3 fingers Advanced translation
4 fingers Open settings
5 fingers Toggle Tools

⚙️ Configuration

Interface

  • Light/Dark theme
  • Font size
  • Position of the translate button

API & Models

  • Provider: Gemini AI
  • API Keys
  • Model selection

Customization

  • Translation prompt
  • Shortcuts
  • Cache
  • Backup/Restore

❗ Notes

🤝 Contributions

All contributions are welcome! Please:

  1. Fork the project
  2. Create a new branch
  3. Commit changes
  4. Push to branch
  5. Create a Pull Request

📄 License

This project is distributed under the GNU General Public License v3.0. See LICENSE for more details.

Donate? Want to support me with a coffee?

🔧 Download

  1. Normal version: https://greasyfork.org/vi/scripts/529348-king-translator-ai

  2. Compressed version (lighter, smoother): https://raw.githubusercontent.com/king1x32/compiledUserscripts/release/release/King20Translator20AI.user.js


Made with ❤️ by King1x32
PatreonDiscordTelegram

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%