🌐 Greasyfork Auto-Translator v32
Tampermonkey Userscript for Automatic Translation
📋 Overview
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:
- 🚀 Instant automatic translation on page load
- 🎨 Beautiful emoji-enhanced formatting
- 💜 Elegant purple-bordered styled boxes
- 📱 Tablet and mobile responsive design
- 🌍 Supports 18 languages
✨ Key Features
Translation Capabilities
- 🌐 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
Visual Enhancements
- 🎨 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
User Interface
- 🎛️ 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
🌍 Supported Languages
Target Languages (Translate TO):
- 🇬🇧 English
- 🇪🇸 Spanish
- 🇫🇷 French
- 🇩🇪 German
- 🇮🇹 Italian
- 🇵🇹 Portuguese
- 🇷🇺 Russian
- 🇯🇵 Japanese
- 🇰🇷 Korean
- 🇨🇳 Chinese (Simplified)
- 🇹🇼 Chinese (Traditional)
- 🇸🇦 Arabic
- 🇮🇳 Hindi
- 🇹🇭 Thai
- 🇻🇳 Vietnamese
- 🇳🇱 Dutch
- 🇵🇱 Polish
- 🇹🇷 Turkish
Source Languages (Translate FROM): All languages automatically detected
🚀 How It Works
Translation Process
Page Load Detection
- Script initializes after 1.5 second delay
- Identifies page type (list or detail view)
Ultra-Aggressive Scanning
- Searches ALL elements using wildcard selectors
- Targets: p, span, div, article, li, h1-h6, blockquote
- Includes:
.user-content, #additional-info, #script-info
Text Node Processing (NEW in v32)
- Uses TreeWalker API to find orphaned text
- Catches raw text between
<br> tags
- Wraps standalone text in styled containers
Translation API
- Sends text to Google Translate API
- Rate limited: 350ms delay between translations
- Error handling and fallback support
Beautiful Formatting
- Detects numbered lists → Emoji bullets
- Detects semicolon lists → Bullet points
- Bolds important keywords automatically
- Adds contextual emoji icons
Smart Language Detection
Skips English text:
/^[a-zA-Z\s\d\.,;:!?()\-"']+$/
Detects non-English:
- Accented characters (àéíóú)
- Non-Latin scripts (中文, 日本語, 한글)
- Special characters and symbols
💡 Use Cases
🌏 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.
🎨 Formatting Features
Emoji Bullet Conversion
Numbered Lists:
1. Feature one
2. Feature two
3. Feature three
Becomes:
1️⃣ Feature one
2️⃣ Feature two
3️⃣ Feature three
Contextual Emoji Icons
| Keyword |
Emoji |
Example |
| video |
🎥 |
Video download |
| download |
⬇️ |
File downloader |
| search |
🔍 |
Search engine |
| speed |
⚡ |
Speed optimization |
| vip |
👑 |
VIP features |
| enhanced |
🚀 |
Enhanced mode |
Automatic Bold Keywords
Text like "Feature Name: description" automatically becomes Feature Name: description
🔧 Installation
Prerequisites
- Tampermonkey Extension (any browser)
Installation Steps
- Install Tampermonkey browser extension
- Add Script from Greasy Fork
- Visit https://greasyfork.org
- Look for purple-bordered boxes and floating panel
- Start Browsing - auto-translates immediately!
📝 Usage Guide
Control Panel
Location: Top-right corner (draggable)
Components:
- 🌐 Title - "v32" version indicator
- 🌍 Language Dropdown - Select target language
- ✅ Counter - Shows translations completed
- 🌐 Translate Button - Manual trigger
- 🔄 Restore Button - Reload original
- ✕ Close Button - Hide panel
Buttons
| Button |
Function |
Description |
| 🌐 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 |
Status Bar
Location: Bottom-right corner
Shows:
- 🌐 Translation progress ("🌐 5...")
- ✅ Completion message ("✅ Done! 12")
- ⏳ Loading indicator ("⏳")
⚙️ Customization
Script Configuration
Edit these values in the script code:
const CONFIG = {
autoTranslate: true, // Auto-translate on load
debug: false // Console logging
};
Language Preference
Saved automatically when you select from dropdown
Stored in: Browser's Tampermonkey storage
Persists across: All Greasy Fork pages and sessions
Emoji Customization
Edit the emojiMap object:
const emojiMap = {
'feature': '✨',
'video': '🎥',
'download': '⬇️',
// Add your own keywords and emojis
};
Panel Position
Auto-saved when you drag the panel to a new position
Reset: Manually set panelX and panelY to null in Tampermonkey storage
🎓 Technical Details
Version History
v32 (Current) - Text Node Processing
- ✅ Added TreeWalker API for orphaned text
- ✅ Catches raw text between HTML tags
- ✅ Wraps standalone text in styled divs
v31 - Ultra-Aggressive Detection
- ✅ Wildcard selectors for complete coverage
- ✅ Targets thousands of elements
v30 - Emoji Enhancement
- ✅ Contextual emoji icons
- ✅ Beautiful formatting system
v29 - HTML Formatting
- ✅ Numbered list conversion
- ✅ Bullet point detection
Architecture
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
💪 Performance
Translation Speed
- Average: 350ms per item
- Rate Limit: Built-in delay between requests
- Timeout: 15 seconds per translation
Memory Usage
- WeakSet for processed elements (auto-cleanup)
- Minimal DOM manipulation (only translates once)
Error Handling
- API failures: Returns original text
- Parse errors: Falls back gracefully
- Network issues: Logs to console (if debug enabled)
🌟 Benefits Summary
| Benefit |
Impact |
| 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 |
🎯 Ideal For
✅ 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
📊 Statistics
Elements Scanned:
- Titles (h2 a.script-link)
- Descriptions (span.description, p)
- Content (div, article, section)
- Headers (h1-h6)
- Text nodes (raw text)
Success Rate: ~95% (depends on Google Translate API availability)
Average Page: 10-20 translations
Processing Time: 5-10 seconds per page
🔗 Resources
Official Links
Compatible Browsers
- Chrome 90+
- Firefox 88+
- Edge 90+
- Safari 14+ (with Tampermonkey)
API Used
- Google Translate API (free public endpoint)
- No API key required
- Rate limited to prevent abuse
📞 Support
Reporting Issues
Bug Reports:
- Open browser console (F12)
- Check for error messages
- Note which page/script had the issue
- Report in Greasy Fork feedback
Feature Requests:
- Comment on the script page
- Describe your use case
- Explain desired behavior
Common Issues
❓ Translations not appearing?
- Check console for API errors
- Verify Tampermonkey is enabled
- Try manual "🌐 Translate" button
❓ Panel not showing?
- Look for minimized panel in corner
- Check if it was closed (click script icon)
- Reload page
❓ Wrong language?
- Use language dropdown to change
- Selection saves automatically
- Reload page to apply
📝 License
MIT License - Free to use, modify, and distribute
🎉 Thank You!
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]