Greasy Fork is available in English.

AI OCR, Photo Edit/Restore Suite: Multilingual, HD Upscale, Cutout & Object Erase

Feature-packed suite for instant image-to-text conversion, photo enhancement/restoration, HD upscaling, clear background cutout, and swift object erasure, supporting 180+ languages, including rare dialects.

// ==UserScript==
// @name         AI OCR, Photo Edit/Restore Suite: Multilingual, HD Upscale, Cutout & Object Erase
// @name:es      IA OCR, Edición/Restauración de Fotos: Multilingüe, Aumento HD, Recorte y Borrado de Objetos
// @name:de      KI OCR, Foto Bearbeitung/Wiederherstellung: Mehrsprachig, HD Vergrößerung, Objekt Entfernen
// @name:fr      IA OCR, Éditer/Restaurer Photo: Multilingue, Échelle HD, Découpe & Effacement d'Objet
// @name:it      IA OCR, Modifica/Ripristino Foto: Multilingua, Upscaling HD, Ritaglio e Cancellazione Oggetti
// @name:pt      IA OCR, Editar/Restaurar Foto: Multilíngue, Upscale HD, Recorte e Apagador de Objetos
// @name:ru      ИИ OCR, Редактирование/Восстановл. Фото: Многоязыч., HD, Вырезка & Удаление
// @name:ja      AI OCR, 写真編集/復元スイート:多言語、HDアップスケール、カットアウト&オブジェクト消去
// @name:ko      AI OCR, 사진 편집/복원 스위트: 다국어, HD 업스케일, 컷아웃 및 객체 삭제
// @name:ar      OCR بالذكاء الاصطناعي, تحرير/استعادة الصور: متعدد اللغات, تكبير HD, قص ومسح العناصر
// @name:tr      AI OCR, Fotoğraf Düzenleme/Geri Yükleme Paketi: Çok Dilli, HD Büyütme, Kesim & Nesne Silme
// @name:nl      AI OCR, Foto Bewerken/Herstellen Suite: Meertalig, HD Opschalen, Uitsnijden & Object Wissen
// @name:sv      AI OCR, Foto Redigering/Återställning: Flera Språk, HD Förstoring, Utklipp & Objekt Borttagning
// @name:da      AI OCR, Foto Redigering/Genopretning: Flersproget, HD Optrapning, Udklip & Objektsletning
// @name:th      OCR ด้วย AI, ชุดแก้ไข/คืนค่ารูปภาพ: หลายภาษา, ขยาย HD, ตัดและลบวัตถุ
// @name:zh      AI OCR、照片编辑/恢复套件:多语言支持、HD升级、剪切和对象擦除
// @name:zh-CN   AI OCR、照片编辑/恢复套件:多语言支持、HD升级、剪切和对象擦除
// @name:zh-TW   AI OCR、照片編輯/恢復套件:多語言支援、HD升級、剪裁和物體擦除
// @description  Feature-packed suite for instant image-to-text conversion, photo enhancement/restoration, HD upscaling, clear background cutout, and swift object erasure, supporting 180+ languages, including rare dialects.
// @description:es  Conjunto completo de herramientas para la conversión instantánea de imagen a texto, mejora/restauración de fotos, escalado HD, recortes de fondo claros y borrado rápido de objetos, compatible con más de 180 idiomas, incluidos dialectos raros.
// @description:de  Funktionen-geladene Suite für Sofortbild-zu-Text-Konvertierung, Fotoverbesserung/-wiederherstellung, HD-Vergrößerung, klares Hintergrundausschneiden und schnelle Objekterasierung, unterstützt über 180 Sprachen, einschließlich seltener Dialekte.
// @description:fr  Suite complète de fonctionnalités pour la conversion instantanée d'image en texte, l'amélioration/restauration de photos, l'upscaling HD, la découpe d'arrière-plan claire et l'effacement rapide d'objets, prenant en charge plus de 180 langues, y compris les dialectes rares.
// @description:it  Pacchetto completo di funzionalità per la conversione istantanea da immagine a testo, miglioramento/ripristino foto, upscaling HD, ritaglio di sfondo trasparente e cancellazione rapida di oggetti, supporta oltre 180 lingue, inclusi dialetti rari.
// @description:pt  Pacote completo de funcionalidades para conversão instantânea de imagem em texto, melhoramento/restauração de fotos, escalamento HD, recorte de fundo claro e apagamento rápido de objetos, suportando mais de 180 idiomas, incluindo dialetos raros.
// @description:ru  Набор инструментов для мгновенного преобразования изображений в текст, улучшения/восстановления фотографий, увеличения HD, чистой вырезки фона и быстрого удаления объектов, поддерживает более 180 языков, включая редкие диалекты.
// @description:ja  画像からテキストへの瞬時の変換、写真の強化/復元、HDアップスケール、バックグラウンドカットアウトとオブジェクト消去を包括する機能パックスイートで、珍しい方言も含む180以上の言語に対応します。
// @description:ko  이미지에서 텍스트로의 즉각적인 변환, 사진 개선/복원, HD 업 스케일, 선명한 배경 컷아웃 및 신속한 객체 제거를 지원하는 180개 이상의 언어를 포함한 기능이 가득한 스위트입니다.
// @description:ar  حزمة ميزات للتحويل الفوري من الصورة إلى النص، وتحسين/استعادة الصور، والتكبير بجودة HD، وقص الخلفية الواضح، ومسح العناصر السريع، دعم أكثر من 180 لغة، بما في ذلك اللهجات النادرة.
// @description:tr  Anında resimden metne dönüştürme, fotoğraf iyileştirme/restorasyon, HD yükseltme, net arka plan kırpma ve hızlı nesne silme için özellik dolu bir paket, nadir lehçeler de dahil olmak üzere 180'den fazla dil desteği içerir.
// @description:nl  Functiepakket voor directe beeld-naar-tekst conversie, foto verbetering/herstel, HD opschaling, heldere achtergrond uitsnijden en snelle object wissen, ondersteunt meer dan 180 talen, inclusief zeldzame dialecten.
// @description:sv  Funktionsspäckad svit för omedelbar bild-till-text konvertering, foto förbättring/återställning, HD uppskalning, klar bakgrund utklipp och snabb objekt radering, med stöd för över 180 språk inklusive ovanliga dialekter.
// @description:da  Funktionsspækket pakke til øjeblikkelig billede-til-tekst konvertering, foto forbedring/genopretning, HD opskalering, klar baggrund udklip og hurtig objekt sletning, understøtter over 180 sprog, inklusive sjældne dialekter.
// @description:th  ชุดคุณสมบัติสำหรับการแปลงจากรูปภาพเป็นข้อความทันที, การปรับปรุง/คืนค่าภาพถ่าย, การขยายความละเอียด HD, การตัดพื้นหลังที่ชัดเจน, และการลบวัตถุอย่างรวดเร็ว รองรับมากกว่า 180 ภาษา รวมถึงภาษาถิ่นที่หายาก
// @description:zh  一款功能全面的套件,提供即时图像转文本转换、照片增强/恢复、HD上升、清晰背景剪切和快速对象擦除,支持180多种语言,包括罕见方言。
// @description:zh-CN 一款功能全面的套件,提供即时图像转文本转换、照片增强/恢复、HD上升、清晰背景剪切和快速对象擦除,支持180多种语言,包括罕见方言。
// @description:zh-TW 一款功能全面的套件,提供即時影像轉文字轉換、照片增強/恢復、HD上升、清晰背景剪切和快速物體擦除,支援180多種語言,包括罕見方言。
// @namespace    http://gpicy.com
// @version      1.1.8
// @author       gpicy
// @icon         https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Bgxjuw/sURzH5C7tFk2IlQ3rIdVpMu/vOYnTiIg4dkBk6qCkPCwEqvMOZgtUUNML7ZKfNpB1Xa0szJoyTMB+Daa8/BhTc/BltvzavEMdPng0EbHAyehwv7jsDgM1LaVGtLZFQbpzN1VDM1ogYYH2DGVeYvzsp7Kmf3NcieeRIPfL4dEl9+D+tZLZCrZG9HuqTs9QI/xDOnvoJvfvEcjA2kprjZ6VSJuwTNSmiEJZCsAWYuQTNbIS7PQENvHsXB738W9xUvs/Sn74fuOztZXSwFcisdE07B2MQzeG7fX+KRL/XB6I/lNWezn3Q4aAwbpKwGmMXe7FpVJg3Y03+DfQdfhYE7u7Dh3iKIpQaYQ9dZ9oV9eGVfAczL0laaC3PVnMUmrJHPhYi10a21mh+m1mqAqbUaYGqtBphaqwGm1mqtBphaqwGm1mqAqbUaYGqtBphaqwGm1mqtBphaqwGm1ua3/X8BBgArCCjkrjRw4QAAAABJRU5ErkJggg==
// @match        *://*/*
// @supportURL   https://gpicy.com?utm_source=greasyfork
// @grant        none
// @run-at       document-start
// @antifeature  ads
// @antifeature  payment
// @antifeature  membership
// @compatible   Chrome
// @compatible   Safari
// @compatible   Edge
// @compatible   Firefox
// @compatible   Opera
// @license      Apache-2.0
// ==/UserScript==

(function() {
    const floatingMenu = document.createElement('div');
    floatingMenu.style.cssText = `
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(132, 16, 145, 0.45), rgba(222, 0, 114, 0.45));
    padding: 10px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    `;

    const closeButton = document.createElement('div');
    closeButton.innerHTML = `×`; // "×" symbol
    closeButton.style.cssText = `
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    margin-right: -10px;
    margin-top: -10px;
    border-radius: 15px; /* Makes it round */
    background-color: #FFF;
    color: #000;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    `;
    closeButton.onclick = function() {
        document.body.removeChild(floatingMenu);
    };

    const menuTranslations = {
        'en': {
            'Image OCR': '🖼️ Image OCR',
            'PDF OCR': '📄 PDF OCR',
            'Lossless Image Enlarge': '🔍 Lossless Image Enlarge',
            'Background Removal': '🚫 Background Removal',
            'Object Removal': '🧹 Object Removal',
            'Photo Colorization': '🎨 Photo Colorization',
            'Portrait Restoration': '👥 Portrait Restoration'
        },
        'fr': { // French
            'Image OCR': '🖼️ OCR d\'Image',
            'PDF OCR': '📄 OCR de PDF',
            'Lossless Image Enlarge': '🔍 Agrandissement d\'Image Sans Perte',
            'Background Removal': '🚫 Suppression de l\'Arrière-plan',
            'Object Removal': '🧹 Retrait d\'Objet',
            'Photo Colorization': '🎨 Colorisation de Photo',
            'Portrait Restoration': '👥 Restauration de Portrait'
        },
        'de': { // German
            'Image OCR': '🖼️ Bild OCR',
            'PDF OCR': '📄 PDF OCR',
            'Lossless Image Enlarge': '🔍 Verlustfreie Bildvergrößerung',
            'Background Removal': '🚫 Hintergrund Entfernen',
            'Object Removal': '🧹 Objektentfernung',
            'Photo Colorization': '🎨 Fotokolorierung',
            'Portrait Restoration': '👥 Porträtrestaurierung'
        },
        'es': { // Spanish
            'Image OCR': '🖼️ OCR de Imagen',
            'PDF OCR': '📄 OCR de PDF',
            'Lossless Image Enlarge': '🔍 Ampliación de Imagen Sin Pérdida',
            'Background Removal': '🚫 Eliminación de Fondo',
            'Object Removal': '🧹 Eliminación de Objeto',
            'Photo Colorization': '🎨 Colorización de Fotos',
            'Portrait Restoration': '👥 Restauración de Retrato'
        },
        'it': { // Italian
            'Image OCR': '🖼️ OCR Immagine',
            'PDF OCR': '📄 OCR PDF',
            'Lossless Image Enlarge': '🔍 Ingrandimento Immagine Senza Perdite',
            'Background Removal': '🚫 Rimozione dello Sfondo',
            'Object Removal': '🧹 Rimozione Oggetto',
            'Photo Colorization': '🎨 Colorazione Foto',
            'Portrait Restoration': '👥 Restauro Ritratto'
        },
        'pt': { // Portuguese
            'Image OCR': '🖼️ OCR de Imagem',
            'PDF OCR': '📄 OCR de PDF',
            'Lossless Image Enlarge': '🔍 Ampliação de Imagem sem Perda',
            'Background Removal': '🚫 Remoção de Fundo',
            'Object Removal': '🧹 Remoção de Objeto',
            'Photo Colorization': '🎨 Coloração de Foto',
            'Portrait Restoration': '👥 Restauração de Retrato'
        },
        'ja': { // Japanese
            'Image OCR': '🖼️ 画像OCR',
            'PDF OCR': '📄 PDF OCR',
            'Lossless Image Enlarge': '🔍 ロスレス画像拡大',
            'Background Removal': '🚫 背景削除',
            'Object Removal': '🧹 オブジェクト削除',
            'Photo Colorization': '🎨 写真着色',
            'Portrait Restoration': '👥 ポートレート修復'
        },
        'nl': { // Dutch
            'Image OCR': '🖼️ Afbeelding OCR',
            'PDF OCR': '📄 PDF OCR',
            'Lossless Image Enlarge': '🔍 Verliesvrije Afbeelding Vergroten',
            'Background Removal': '🚫 Achtergrond Verwijderen',
            'Object Removal': '🧹 Object Verwijderen',
            'Photo Colorization': '🎨 Foto Inkleuren',
            'Portrait Restoration': '👥 Portret Restauratie'
        },
        'ru': { // Russian
            'Image OCR': '🖼️ OCR изображений',
            'PDF OCR': '📄 OCR PDF',
            'Lossless Image Enlarge': '🔍 Безубыточное Увеличение Изображения',
            'Background Removal': '🚫 Удаление Фона',
            'Object Removal': '🧹 Удаление Объектов',
            'Photo Colorization': '🎨 Колоризация Фото',
            'Portrait Restoration': '👥 Реставрация Портретов'
        },
        'ko': { // Korean
            'Image OCR': '🖼️ 이미지 OCR',
            'PDF OCR': '📄 PDF OCR',
            'Lossless Image Enlarge': '🔍 손실 없는 이미지 확대',
            'Background Removal': '🚫 배경 제거',
            'Object Removal': '🧹 객체 제거',
            'Photo Colorization': '🎨 사진 채색',
            'Portrait Restoration': '👥 초상화 복원'
        },
        'ar': { // Arabic
            'Image OCR': '🖼️ OCR للصور',
            'PDF OCR': '📄 OCR لملفات PDF',
            'Lossless Image Enlarge': '🔍 تكبير الصورة بدون فقدان',
            'Background Removal': '🚫 إزالة الخلفية',
            'Object Removal': '🧹 إزالة الكائن',
            'Photo Colorization': '🎨 تلوين الصور',
            'Portrait Restoration': '👥 استعادة الصور الشخصية'
        },
        'th': { // Thai
            'Image OCR': '🖼️ OCR ภาพ',
            'PDF OCR': '📄 OCR ไฟล์ PDF',
            'Lossless Image Enlarge': '🔍 ขยายภาพแบบไม่สูญเสียข้อมูล',
            'Background Removal': '🚫 ลบพื้นหลัง',
            'Object Removal': '🧹 ลบวัตถุ',
            'Photo Colorization': '🎨 การตกแต่งสีภาพถ่าย',
            'Portrait Restoration': '👥 การซ่อมแซมภาพเหมือน'
        },
        'zh': { // Simplified Chinese
            'Image OCR': '🖼️ 图像文字识别',
            'PDF OCR': '📄 PDF文字识别',
            'Lossless Image Enlarge': '🔍 无损放大图像',
            'Background Removal': '🚫 背景移除',
            'Object Removal': '🧹 物体移除',
            'Photo Colorization': '🎨 照片上色',
            'Portrait Restoration': '👥 人像修复'
        },
        'zh-TW': { // Traditional Chinese
            'Image OCR': '🖼️ 圖像文字識別',
            'PDF OCR': '📄 PDF文字識別',
            'Lossless Image Enlarge': '🔍 無損放大圖像',
            'Background Removal': '🚫 背景移除',
            'Object Removal': '🧹 物體移除',
            'Photo Colorization': '🎨 照片上色',
            'Portrait Restoration': '👥 人像修復'
        },

    };

    // Detecting your browser's preferred language
    function detectLanguage() {
        const supportedLangs = Object.keys(menuTranslations);
        const defaultLang = 'en';
        const userLangs = navigator.languages.map(lang => lang.split('-')[0]);
        for (let lang of userLangs) {
            if (supportedLangs.includes(lang)) {
                return lang;
            }
        }
        return defaultLang;
    }

    // Get the language translation of the current user
    const currentLang = detectLanguage();
    const translations = menuTranslations[currentLang];

    // List of features and associated URLs
    const features = [
        { icon: '🖼️', name: 'Image OCR', url: 'https://gpicy.com/en-US/image-ocr?utm_source=greasyfork', desc: 'Image recognition to text' },
        { icon: '📄',   name: 'PDF OCR', url: 'https://gpicy.com/en-US/pdf-ocr?utm_source=greasyfork', desc: 'PDF recognition into text' },
        { icon: '🔍',   name: 'Lossless Image Enlarge', url: 'https://gpicy.com/en-US/lossless-image-enlarge?utm_source=greasyfork', desc: 'Lossless magnification of AI image' },
        { icon: '🚫',   name: 'Background Removal', url: 'https://gpicy.com/en-US/background-removal?utm_source=greasyfork', desc: 'AI Background Removal' },
        { icon: '🧹',   name: 'Object Removal', url: 'https://gpicy.com/en-US/object-removal?utm_source=greasyfork', desc: 'AI Object Removal' },
        { icon: '🎨',   name: 'Photo Colorization', url: 'https://gpicy.com/en-US/photo-colorization?utm_source=greasyfork', desc: 'AI Photo Colorization' },
        { icon: '👥',   name: 'Portrait Restoration', url: 'https://gpicy.com/en-US/portrait-restoration?utm_source=greasyfork', desc: 'AI Portrait Restoration' },
    ];

    floatingMenu.appendChild(closeButton);

    features.forEach(feature => {
        const button = document.createElement('button');
        const translatedName = translations[feature.name] || feature.name;
        button.innerHTML = `${translatedName}`;
        button.style.cssText = `
        display: block;
        width: 100%;
        margin: 5px 0;
        background-color: #FFF;
        color: #000;
        border: none;
        border-radius: 3px;
        padding: 10px;
        cursor: pointer;
        text-align: left;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        `;

        button.onmouseenter = function() {
            this.style.transform = 'translateX(10px)';
            this.style.boxShadow = '3px 3px 10px rgba(0, 0, 0, 0.2)';
        };

        button.onmouseleave = function() {
            this.style.transform = 'translateX(0)';
            this.style.boxShadow = 'none';
        };

        button.onclick = function() {
            window.open(feature.url, '_blank');
        };

        const tooltip = document.createElement('span');
        tooltip.textContent = feature.desc;
        tooltip.style.cssText = `
            visibility: hidden;
            width: 120px;
            background-color: black;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 5px 0;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            margin-left: -60px;
            opacity: 0;
            transition: opacity 0.3s;
        `;
        button.appendChild(tooltip);

        button.onmouseover = function() {
            tooltip.style.visibility = 'visible';
            tooltip.style.opacity = '1';
        };

        button.onmouseout = function() {
            tooltip.style.visibility = 'hidden';
            tooltip.style.opacity = '0';
        };

        floatingMenu.appendChild(button);
    });

    document.body.appendChild(floatingMenu);
})();