usaidbinkhalidkhan / Translate Selection Sidebar and Tooltip

Published:

Version: 0.9082024+bab5721 updated

Summary: Translate selected text, show in a tooltip, add to a sidebar list, and store in local storage

License: MIT


Description:

Enhance your browsing experience with the Translate Selection Sidebar and Tooltip userscript. This powerful tool allows you to translate selected text directly on any webpage, displaying the translation in a sleek tooltip while automatically saving it to a convenient sidebar archive. Perfect for language learners, researchers, and global web surfers, this script is designed to streamline translation tasks, providing quick and easy access to your translations anytime you need them.

Features:

  • Instantly translate selected text on any webpage.
  • View translations in a tooltip next to your selected text.
  • Archive translations in a sidebar for easy reference.
  • Toggle dark mode with a single click for comfortable reading in any lighting.
  • Clear your translation history or copy all translations with ease.

Keywords:
translation, tooltip, sidebar, text translation, instant translation, language tool, browser tool, dark mode, translation archive, Google Translate API, language learning, web utility, userscript, JavaScript, cross-browser, online translator.

Visit my website for more tools and scripts: https://aveusaid.wordpress.com


Instructions / Walkthrough:

  1. Installation:

    • Download and install a userscript manager extension in your browser, such as Tampermonkey (for Chrome) or Greasemonkey (for Firefox).
    • Click on the "Create a new script" option in the userscript manager.
    • Copy and paste the code from the provided script into the editor.
    • Save and enable the script.
  2. How to Use:

    • Translate Text: Highlight any text on a webpage, and the translation will automatically appear in a tooltip near your selection.
    • View Translations: Click on "The Archive" button at the bottom-right corner of the screen to open the sidebar, where all your translations are stored.
    • Clear Translations: To remove all stored translations, click the "Tabula Rasa" button at the bottom of the sidebar.
    • Copy All Translations: To copy all stored translations to your clipboard, click the "Copy All" button in the sidebar.
    • Toggle Dark Mode: Use the "Dim the Lights" button to switch between light and dark modes for a more comfortable viewing experience.
  3. Navigating the Sidebar:

    • Opening and Closing: Click "The Archive" button to open the sidebar. The button will disappear when the sidebar is open. To close it, click the "×" button at the top-right corner of the sidebar.
    • Viewing Translations: All translations are listed in the sidebar, with the original text on top and the translated text below.
  4. Customizing Your Experience:

    • You can resize the sidebar by dragging its left edge to your desired width.
    • Toggle between light and dark mode by clicking the "Dim the Lights" or "Light the Way" button in the sidebar.

Privacy Policy:

Privacy Policy for the Translate Selection Sidebar and Tooltip Userscript

The Translate Selection Sidebar and Tooltip userscript respects your privacy and is designed with your data security in mind.

Data Collection:

  • This script does not collect or store any personal information or data.
  • Translations are performed via the Google Translate API, and the selected text is temporarily sent to Google’s servers for translation purposes. No data is stored, shared, or used beyond the immediate translation task.

Local Storage:

  • Translations are saved locally in your browser's local storage for your convenience. This data is stored on your device and is not transmitted to any external server.
  • You can clear all stored translations at any time by clicking the "Tabula Rasa" button in the sidebar.

Third-Party Services:

  • The script uses Google Translate for text translation. Please refer to Google’s Privacy Policy for details on how your data is handled by Google during translation.

Security:

  • The script runs entirely in your browser and does not have access to any other data on your device or your online activities.

Disclaimer:

  • This userscript is provided "as is" without warranty of any kind. The developer is not responsible for any potential issues or data loss that may occur from using the script.

By using this userscript, you agree to the terms of this privacy policy. For more information or questions, please contact me via my website: https://aveusaid.wordpress.com.


Rating: 0