Greasy Fork

Greasy Fork is available in English.

附加搜索栏

向 Google 添加各种替代搜索引擎选项,包括注重隐私的选项。

当前为 2023-11-15 提交的版本,查看 最新版本

// ==UserScript==
// @namespace    http://linkme.bio/jhonpergon/?userscript=buscadoresbar
// @version      1.0
// @author       Jhon Pérgon

// @name      Barra de Pesquisa Extra
// @name:pt      Barra de Pesquisa Extra
// @name:pt-BR      Barra de Pesquisa Extra
// @name:pt-PT      Barra de Pesquisa Extra
// @name:es      Barra de Búsqueda Extra
// @name:en      Extra Search Bar
// @name:fr      Barre de Recherche Supplémentaire
// @name:ru      Дополнительная строка поиска
// @name:ja      追加検索バー
// @name:ko      추가 검색 바
// @name:zh-TW      額外搜索欄
// @name:zh-CN      附加搜索栏
// @name:id      Bilah Pencarian Tambahan
// @name:ug      قوشۇمچە ئىزدەش تىزىمىسى
// @name:ar      شريط البحث الإضافي
// @name:he      שורת חיפוש נוספת
// @name:hi      अतिरिक्त खोज बार
// @name:th      แถบค้นหาเพิ่มเติม
// @name:bg      Допълнителна търсачка
// @name:ro      Bară de Căutare Suplimentară
// @name:fi      Lisähakupalkki
// @name:it      Barra di Ricerca Extra
// @name:el      Επιπρόσθετη Γραμμή Αναζήτησης
// @name:eo      Aldona Serĉilo
// @name:hu      Extra Keresőszalag
// @name:nb      Ekstra Søkefelt
// @name:sk      Ďalšia Vyhľadávacia Lišta
// @name:sv      Extra Sökruta
// @name:sr      Додатна Трака за Претрагу
// @name:pl      Dodatkowa Belka Wyszukiwania
// @name:nl      Extra Zoekbalk
// @name:de      Extra Suchleiste
// @name:da      Ekstra Søgefelt
// @name:cs      Extra Vyhledávací Panel
// @name:uk      Додаткова Смуга Пошуку
// @name:tr      Ekstra Arama Çubuğu
// @name:vi      Thanh Tìm Kiếm Phụ
// @name:fr-CA      Barre de Recherche Supplémentaire (français canadien)

// @description      Adiciona várias opções de buscadores alternativos ao Google, incluindo aqueles focados em privacidade.
// @description:pt      Adiciona uma variedade de opções de motores de busca alternativos ao Google, abrangendo aqueles com ênfase em privacidade.
// @description:pt-BR      Adiciona várias opções de buscadores alternativos ao Google, incluindo aqueles focados em privacidade.
// @description:pt-PT      Acrescenta várias opções de motores de busca alternativos ao Google, incluindo os que têm foco em privacidade.
// @description:es      Añade diversas opciones de motores de búsqueda alternativos a Google, incluyendo aquellos centrados en la privacidad.
// @description:en      Adds a variety of alternative search engine options to Google, including those focused on privacy.
// @description:fr      Intègre plusieurs options de moteurs de recherche alternatifs à Google, y compris ceux axés sur la confidentialité.
// @description:ru      Добавляет разнообразие альтернативных поисковых систем к Google, включая те, которые ориентированы на конфиденциальность.
// @description:ja      Google にさまざまな代替検索エンジンのオプションを追加し、プライバシーに焦点を当てたものも含まれています。
// @description:ko      Google에 다양한 대체 검색 엔진 옵션을 추가하며, 개인 정보 보호에 중점을 둔 것도 포함됩니다.
// @description:zh-TW      在 Google 中新增多種替代搜索引擎選擇,包括那些注重隱私的選項。
// @description:zh-CN      向 Google 添加各种替代搜索引擎选项,包括注重隐私的选项。
// @description:id      Menambahkan berbagai opsi mesin pencari alternatif ke Google, termasuk yang berfokus pada privasi.
// @description:ug      Googleغا كۆپ گەرەز تىزىملىك تاللانمىسى قوشۇۋەتىدۇ، مىنىڭانلىقى بىلەن پراۋاتلىققا ئىلتىجا قىلىنغانلىرىمىز كىرگۈزىدۇ.
// @description:ar      يضيف مجموعة من خيارات محركات البحث البديلة إلى Google، بما في ذلك تلك التي تركز على الخصوصية.
// @description:he      מוסיף מגוון אפשרויות מנועי חיפוש אלטרנטיביים ל-Google, כולל אלה שמתכוונים לשמור על הפרטיות.
// @description:hi      Google में विभिन्न वैकल्पिक सर्च इंजन ऑप्शन जोड़ता है, जिनमें यह शामिल हैं जो गोपनीयता पर केंद्रित हैं।
// @description:th      เพิ่มความหลากหลายของตัวเลือกเครื่องค้นหาทางเลือกใน Google รวมถึงตัวเลือกที่เน้นไปที่ความเป็นส่วนตัว
// @description:bg      Добавя разнообразие от алтернативни опции за търсене към Google, включително тези, фокусирани върху поверителността.
// @description:ro      Adaugă o varietate de opțiuni de motoare de căutare alternative la Google, inclusiv cele axate pe confidențialitate.
// @description:fi      Lisää vaihtoehtoisia hakukonevaihtoehtoja Googleen, mukaan lukien ne, jotka painottavat yksityisyyttä.
// @description:it      Aggiunge una varietà di opzioni di motori di ricerca alternativi a Google, inclusi quelli focalizzati sulla privacy.
// @description:el      Προσθέτει ποικιλία εναλλακτικών επιλογών κινητήρων αναζήτησης στο Google, συμπεριλαμβανομένων αυτών που επικεντρώνονται στην απορρήτου.
// @description:eo      Aldonas diversajn opciojn de alternativaj serĉaj motoroj al Google, inkluzive de tiuj fokusitaj pri privateco.
// @description:hu      Többféle alternatív keresőmotor lehetőségét adja hozzá a Google-höz, beleértve azokat, amelyek a magánéletre összpontosítanak.
// @description:nb      Legger til et utvalg av alternative søkemotoralternativer til Google, inkludert de som fokuserer på personvern.
// @description:sk      Pridáva rôzne možnosti alternatívnych vyhľadávacích enginov do Google, vrátane tých, ktoré sú zamerané na súkromie.
// @description:sv      Lägger till olika alternativ för sökmotorer till Google, inklusive de som fokuserar på integritet.
// @description:sr      Додаје разноврсне опције алтернативних претраживача на Google, укључујући оне који су усмерени на приватност.
// @description:pl      Dodaje różne opcje alternatywnych wyszukiwarek do Google, w tym te skupione na prywatności.
// @description:nl      Voegt verschillende opties toe voor alternatieve zoekmachines voor Google, inclusief diegene die gericht zijn op privacy.
// @description:de      Fügt eine Vielzahl von Optionen für alternative Suchmaschinen zu Google hinzu, einschließlich solcher, die den Fokus auf Privatsphäre legen.
// @description:da      Tilføjer et udvalg af alternative søgemaskineoptioner til Google, herunder dem der fokuserer på privatliv.
// @description:cs      Přidává různé možnosti alternativních vyhledávačů do Google, včetně těch, které jsou zaměřeny na ochranu soukromí.
// @description:uk      Додає різноманітність альтернативних варіантів пошукових систем до Google, включаючи ті, які акцентують на конфіденційності.
// @description:tr      Google'a çeşitli alternatif arama motoru seçenekleri ekler, gizliliğe odaklananlar dahil.
// @description:vi      Thêm nhiều lựa chọn về các công cụ tìm kiếm thay thế cho Google, bao gồm cả những công cụ tập trung vào quyền riêng tư.
// @description:fr-CA      Ajoute une variété d'options de moteurs de recherche alternatifs à Google, y compris ceux axés sur la confidentialité.

// @match        *://*/*
// @exclude      https://gibiru.com/*
// @exclude      https://www.searchencrypt.com/*
// @exclude      https://2lingual.com/*

// @grant        none
// @icon         https://cdn-icons-png.flaticon.com/512/6360/6360283.png
// @license      MIT

// @compatible      chrome
// @compatible      firefox
// @compatible      opera
// @compatible      edge
// @compatible      safari
// @compatible      berrybrowser
// ==/UserScript==

(function() {
    'use strict';

    document.body.style.marginTop = "32px";
    // Cria a barra de pesquisa
    const searchContainer = document.createElement('div');
    searchContainer.style.position = 'fixed';
    searchContainer.style.width = '100%';
    searchContainer.style.height = 'auto';
    searchContainer.style.borderBottom = 'solid 1px rgb(129, 133, 142)';
    searchContainer.style.padding = '3px';
    searchContainer.style.top = '0';
    searchContainer.style.left = '50%';
    searchContainer.style.right = '50%';
    searchContainer.style.transform = 'translate(-50%, 0px)';
    searchContainer.style.zIndex = '99999';
    searchContainer.style.display = 'list-item';
    searchContainer.style.alignItems = 'center';
    searchContainer.style.textAlign = 'center';
    searchContainer.style.backgroundColor = 'rgb(16, 24, 32)';

    // Adiciona a opção Google
    const googleButton = document.createElement('button');
    googleButton.innerHTML = 'Google';
    googleButton.className = 'btnBarscript';
    googleButton.style.margin = 'auto';
    googleButton.style.margin = '0px 5px';
    googleButton.style.padding = '3px 8px';
    googleButton.style.fontSize = '.80rem';
    googleButton.style.backgroundColor = '#000';
    googleButton.style.color = 'rgb(236, 236, 236)';
    googleButton.style.border = 'solid 2px #46555e';
    googleButton.style.borderRadius = '6px';
    googleButton.addEventListener('click', function() {
        const query = prompt('Search on Google');
        if (query !== null) {
            window.location.href = 'https://www.google.com/search?q=' + encodeURIComponent(query);
        }
    });
    searchContainer.appendChild(googleButton);

    // Adiciona a opção DuckDuckGo
    const duckDuckGoButton = document.createElement('button');
    duckDuckGoButton.innerHTML = 'DuckDuckGo';
    duckDuckGoButton.className = 'btnBarscript';
    duckDuckGoButton.style.margin = 'auto';
    duckDuckGoButton.style.margin = '0px 5px';
    duckDuckGoButton.style.padding = '3px 8px';
    duckDuckGoButton.style.fontSize = '.80rem';
    duckDuckGoButton.style.backgroundColor = '#000';
    duckDuckGoButton.style.color = 'rgb(236, 236, 236)';
    duckDuckGoButton.style.border = 'solid 2px #46555e';
    duckDuckGoButton.style.borderRadius = '6px';
    duckDuckGoButton.addEventListener('click', function() {
        const query = prompt('Search on DuckDuckGo');
        if (query !== null) {
            window.location.href = 'https://duckduckgo.com/?q=' + encodeURIComponent(query);
        }
    });
    searchContainer.appendChild(duckDuckGoButton);

    // Adiciona a opção StartPage
    const startPageButton = document.createElement('button');
    startPageButton.innerHTML = 'StartPage';
    startPageButton.className = 'btnBarscript';
    startPageButton.style.margin = 'auto';
    startPageButton.style.margin = '0px 5px';
    startPageButton.style.padding = '3px 8px';
    startPageButton.style.fontSize = '.80rem';
    startPageButton.style.backgroundColor = '#000';
    startPageButton.style.color = 'rgb(236, 236, 236)';
    startPageButton.style.border = 'solid 2px #46555e';
    startPageButton.style.borderRadius = '6px';
    startPageButton.addEventListener('click', function() {
        const query = prompt('Search on StartPage');
        if (query !== null) {
            window.location.href = 'https://www.startpage.com/do/dsearch?query=' + encodeURIComponent(query);
        }
    });
    searchContainer.appendChild(startPageButton);

    // Adiciona a opção Yandex
    const yandexButton = document.createElement('button');
    yandexButton.innerHTML = 'Yandex';
    yandexButton.className = 'btnBarscript';
    yandexButton.style.margin = 'auto';
    yandexButton.style.margin = '0px 5px';
    yandexButton.style.padding = '3px 8px';
    yandexButton.style.fontSize = '.80rem';
    yandexButton.style.backgroundColor = '#000';
    yandexButton.style.color = 'rgb(236, 236, 236)';
    yandexButton.style.border = 'solid 2px #46555e';
    yandexButton.style.borderRadius = '6px';
    yandexButton.addEventListener('click', function() {
        const query = prompt('Search on Yandex');
        if (query !== null) {
            window.location.href = 'https://yandex.com/search/?text=' + encodeURIComponent(query);
        }
    });
    searchContainer.appendChild(yandexButton);

    // Adiciona a opção MetaGer
    const metagerButton = document.createElement('button');
    metagerButton.innerHTML = 'MetaGer';
    metagerButton.className = 'btnBarscript';
    metagerButton.style.margin = 'auto';
    metagerButton.style.margin = '0px 5px';
    metagerButton.style.padding = '3px 8px';
    metagerButton.style.fontSize = '.80rem';
    metagerButton.style.backgroundColor = '#000';
    metagerButton.style.color = 'rgb(236, 236, 236)';
    metagerButton.style.border = 'solid 2px #46555e';
    metagerButton.style.borderRadius = '6px';
    metagerButton.addEventListener('click', function() {
        const query = prompt('Search on MetaGer');
        if (query !== null) {
            window.location.href = 'https://metager.org/meta/meta.ger3?eingabe=' + encodeURIComponent(query);
        }
    });
    searchContainer.appendChild(metagerButton);

    // Adiciona a opção Gibiru
    const gibiruButton = document.createElement('button');
    gibiruButton.innerHTML = 'Gibiru';
    gibiruButton.className = 'btnBarscript';
    gibiruButton.style.margin = 'auto';
    gibiruButton.style.margin = '0px 5px';
    gibiruButton.style.padding = '3px 8px';
    gibiruButton.style.fontSize = '.80rem';
    gibiruButton.style.backgroundColor = '#000';
    gibiruButton.style.color = 'rgb(236, 236, 236)';
    gibiruButton.style.border = 'solid 2px #46555e';
    gibiruButton.style.borderRadius = '6px';
    gibiruButton.addEventListener('click', function() {
        const query = prompt('Search on Gibiru');
        if (query !== null) {
            window.location.href = 'https://gibiru.com/results.html?q=' + encodeURIComponent(query);
        }
    });
    searchContainer.appendChild(gibiruButton);

    // Adiciona a opção Search Encrypt
    const encryptButton = document.createElement('button');
    encryptButton.innerHTML = 'Search Encrypt';
    encryptButton.className = 'btnBarscript';
    encryptButton.style.margin = 'auto';
    encryptButton.style.margin = '0px 5px';
    encryptButton.style.padding = '3px 8px';
    encryptButton.style.fontSize = '.80rem';
    encryptButton.style.backgroundColor = 'rgb(21, 19, 28)';
    encryptButton.style.color = 'rgb(236, 236, 236)';
    encryptButton.style.border = 'solid 2px rgb(89, 113, 128)';
    encryptButton.style.borderRadius = '6px';
    encryptButton.addEventListener('click', function() {
      window.location.href = 'https://www.searchencrypt.com/home';
    });
    searchContainer.appendChild(encryptButton);

    // Adiciona a opção Search 2lingual
    const lingualButton = document.createElement('button');
    lingualButton.innerHTML = '2lingual';
    lingualButton.className = 'btnBarscript';
    lingualButton.style.margin = 'auto';
    lingualButton.style.margin = '0px 5px';
    lingualButton.style.padding = '3px 8px';
    lingualButton.style.fontSize = '.80rem';
    lingualButton.style.backgroundColor = 'rgb(21, 19, 28)';
    lingualButton.style.color = 'rgb(236, 236, 236)';
    lingualButton.style.border = 'solid 2px rgb(89, 113, 128)';
    lingualButton.style.borderRadius = '6px';
    lingualButton.addEventListener('click', function() {
      window.location.href = 'https://2lingual.com/';
    });
    searchContainer.appendChild(lingualButton);

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