Translates ANY non-English language to English - Now catches raw text nodes!
当前为
Tampermonkey Userscript for Automatic Translation
Greasyfork Auto-Translator automatically translates all non-English script descriptions on Greasy Fork into English. It eliminates language barriers when browsing scripts by intelligently detecting and translating Chinese, Japanese, Korean, Spanish, French, and other languages.
Main Benefits:
🌐 Automatic Translation
→ Translates any non-English text instantly
📝 Complete Coverage
→ Catches ALL text including orphaned text nodes
🎯 Ultra-Aggressive Scanning
→ Wildcard selectors find every element
⚡ Smart Detection
→ Skips English content automatically
🎨 Emoji Formatting
→ Numbered lists become emoji bullets (1️⃣ 2️⃣ 3️⃣)
🎬 Contextual Icons
→ Keywords trigger relevant emojis (🎥 ⬇️ 🚀 🔍)
💜 Purple Boxes
→ Translated content in styled bordered containers
🏷️ Translation Badge
→ "🌐 Translated" indicator in corner
🎛️ Draggable Panel
→ Floating control panel (top-right)
🌍 Language Selector
→ 18 languages with flag emojis
📊 Counter Display
→ Real-time translation count
🔄 Restore Button
→ Reload original content
Source Languages: All languages automatically detected
1. Page Load Detection
2. Ultra-Aggressive Scanning
.user-content, #additional-info, #script-info3. Text Node Processing (NEW in v32)
<br> tags4. Translation API
5. Beautiful Formatting
Skips English text:
/^[a-zA-Z\s\d\.,;:!?()\-"']+$/
Detects non-English:
🌏 International Script Browsing
→ Explore scripts from Chinese, Japanese, and Korean developers without language barriers
📚 Script Research
→ Quickly understand features of scripts written in any language
🔍 Feature Comparison
→ Compare similar scripts regardless of their description language
⚡ Quick Evaluation
→ Instantly know if a foreign-language script meets your needs
📱 Mobile Reading
→ Responsive design with optimized fonts for tablets and phones
Numbered Lists:
1. Feature one
2. Feature two
3. Feature three
Becomes:
1️⃣ Feature one
2️⃣ Feature two
3️⃣ Feature three
🎥 Video - Keywords: video, movie, film
⬇️ Download - Keywords: download, save, export
🔍 Search - Keywords: search, find, lookup
⚡ Speed - Keywords: speed, fast, quick
👑 VIP - Keywords: vip, premium, pro
🚀 Enhanced - Keywords: enhanced, boost, improve
Text like "Feature Name: description" automatically becomes:
Feature Name: description
Tampermonkey Extension (any browser)
Location: Top-right corner (draggable)
Components:
🌐 Translate
→ Manual trigger - Forces translation to start
🔄 Restore
→ Reload page - Shows original untranslated text
− Minimize
→ Collapse panel - Hides content, shows title only
✕ Close
→ Hide panel - Removes panel from view
Location: Bottom-right corner
Shows:
Edit these values in the script code:
const CONFIG = {
autoTranslate: true, // Auto-translate on load
debug: false // Console logging
};
Saved automatically when you select from dropdown
Stored in: Browser's Tampermonkey storage
Persists across: All Greasy Fork pages and sessions
Edit the emojiMap object:
const emojiMap = {
'feature': '✨',
'video': '🎥',
'download': '⬇️',
// Add your own keywords and emojis
};
Auto-saved when you drag the panel to a new position
Reset: Manually set panelX and panelY to null in Tampermonkey storage
v32 (Current) - Text Node Processing
v31 - Ultra-Aggressive Detection
v30 - Emoji Enhancement
v29 - HTML Formatting
Element Processing:
processScriptTitles() → Translates h2 a.script-link
processAllTextElements() → Scans all elements
processTextNodes() → Catches orphaned text
Text Detection:
shouldTranslate() → Language detection
translateText() → Google Translate API call
formatTextToHTML() → Emoji & formatting
replaceContentNaturally() → DOM replacement
⚡ Average: 350ms per item
⏱️ Rate Limit: Built-in delay between requests
⏳ Timeout: 15 seconds per translation
💾 WeakSet for processed elements (auto-cleanup)
🎯 Minimal DOM manipulation (only translates once)
🔄 API failures: Returns original text
⚠️ Parse errors: Falls back gracefully
🌐 Network issues: Logs to console (if debug enabled)
⏱️ Time Savings
→ No manual copy-paste to translators
📖 Better Understanding
→ Read features in your language
🌍 Discover More
→ Access thousands of foreign scripts
✨ Professional Look
→ Beautiful emoji formatting
📱 Mobile-Friendly
→ Responsive tablet/phone design
🎯 Complete Coverage
→ 100% text detection
✅ International Users
→ Browse scripts from any country
✅ Script Researchers
→ Evaluate scripts quickly
✅ Documentation Readers
→ Clean, formatted translations
✅ Busy Developers
→ No manual translation needed
✅ Mobile Users
→ Responsive on all devices
✅ Quality Seekers
→ Professional formatting
Elements Scanned:
📈 Success Rate: ~95% (depends on Google Translate API availability)
📄 Average Page: 10-20 translations
⏱️ Processing Time: 5-10 seconds per page
🌐 Greasy Fork: https://greasyfork.org/scripts/[script-id]
💻 Source Code: Available in Tampermonkey dashboard
💬 Feedback: Greasy Fork comments section
🌐 Google Translate API (free public endpoint)
🔓 No API key required
⏱️ Rate limited to prevent abuse
Bug Reports:
Feature Requests:
❓ Translations not appearing?
❓ Panel not showing?
❓ Wrong language?
MIT License - Free to use, modify, and distribute
Thank you for using Greasyfork Auto-Translator!
Making Greasy Fork accessible to everyone, regardless of language.
Happy script hunting! 🌐✨
Last Updated: November 2025
Version: 32
Author: [Your Name]