Asistent prekladu skratky github

Vypočujte si klávesovú skratku CTRL + Q, ktorá implementuje funkciu prekladu textu a nahradí výsledky prekladu pôvodným textovým políčkom.

Autor
人民的勤务员
Denne inštalácií
2
Celkový počet inštalácií
2
Hodnotenie
0 0 0
Verzia
2025.03.20.0728
Vytvorené
20.03.2025
Aktualizované
20.03.2025
Veľkosť
24,8 KB
Kompatibilita
Kompatibilné s Firefox Kompatibilné s Chrome Kompatibilné s Opera Kompatibilné s Safari Kompatibilné s Edge
Licencia
MIT
Spustiť na
简体中文 | English | 한국어 | Tiếng Việt | 繁體中文
👆️accessGitHub Readme file on for a better experience。

GitHub shortcut key translation assistant

「 Listen to keyboard shortcut Ctrl + Q, which implements the function of translating text and replacing the translation results with the original text box. Supports Issue and pull request pages. 」

Views

Download:Github | ⭐Greasy Fork

Update records

🛠️ GitHub Quick translation Update log

📅 2025.03.20.0728

New: •Initial version


GitHub Quick translation

This script listens to keyboard shortcuts Ctrl + Q,Implement the function of translating the selected text and replacing the translation results in the original text box。Translation has been called Google Translate API。

Function description

  1. Shortcut key trigger:Press Ctrl + Q When the translation function is triggered。
  2. Select text translation:Automatically detect selected text in the text box,and translate it into the target language。
  3. Translation result replacement:Replace the translated text to the selected position in the original text box。
  4. Support GitHub OnissuesandpullPagemarkdownTranslate information。
  5. You can customize the translation language you need in the script,Translated by default in English。const translate = 'en'

Script logic

  1. Listen to keyboard events,Determine whether it has been pressed Ctrl + Q
  2. If selected text is detected in the target text box:
    • Extract selected text。
    • Call Google Translate API Make a translation。
    • Replace the original selected text with translation results。
  3. If the text is not selected or the target text box is not found,Prompt information will be output on the console。

2025.03.20

🔍You may be looking forGitHubRelated scripts

  • GitHub Submit information display web view: This script will GitHub The submission information on HTML view,to see submission details more clearly。It will automatically submit the information list、The commit header and latest commit information are converted to HTML Format,Provide better visual effects and user experience。
  • Open jsDelivr link on Github: Open the GitHub link on jsDelivr to quickly download files
  • GitHub warehouse quick jump assistant: 🤠 GitHub warehouse quick jump assistant, specially designed to help users quickly access their own warehouses on GitHub. It generates a button at the top of the navigation bar. Click to expand all your repositories and easily jump to your own GitHub repository page without using GitHub’s secondary menu.
  • GitHub File list beautifier: GitHub File List Beautifier is a user script,used to enhance GitHub Display effect of files in warehouse。It can add colors to files and folders,and replace the file type icons with small images,Makes the code base easier to browse and manage。Add colors and icons to files by type,Display small images in place of file type icons in repository source tree
  • Github List of code languages show all: Expand Github List of languages on the repository,Show each language,Instead of hiding small parts in“other”Down
  • GitHub Automatically confirm device authorization: existGitHubThe authorization page automatically enters the authorization code and automatically confirms it.。
  • GitHub folder downloader: Add a download button,Allows easy downloading of specific GitHub folder。
  • Github Copy original file URL with download files: Add button at the end of each file line,to copy the original file URL and download files
  • 🤠 Github enhanced assistant warehouse display size: 🤠 Warehouse display size: On GitHub’s code search, warehouse search, issue page, user warehouse list and repository page, the size of the warehouse will be displayed next to the warehouse name, allowing users to quickly understand the scale of the warehouse and optimize their selection. Inactive development warning: If a repository has not been updated in the past six months, the system will add a prompt at the top of the repository to remind users that the repository is inactive and display the time of the last update. This helps users determine the activity and maintenance status of the warehouse. Quick jump within the warehouse: When browsing the warehouse, the user can easily view the list of all warehouses of the user, providing an entrance to quickly jump to different warehouses. Users can quickly find and access other projects of interest, improving work efficiency. Usage scenarios: Developers: By displaying the warehouse size and active warnings, you can quickly filter out suitable libraries for development and avoid using projects that are no longer maintained. Project Manager: Through the quick jump function, it is easy to manage and coordinate multiple projects and improve work efficiency. Learners: When learning new technologies, they can more easily find relevant open source projects and quickly check the activity and scale of the projects. 🤠
  • GitHub Sort by date: Change file sorting to descending by date,Conveniently view the latest updated files。
  • GitHub Gist code snippet copy and downloader: Add a copy button to the Gist file to make the code easily copied. | Add a download button to the Gist file to easily download the code.
  • GitHub shortcut key translation assistant: Listen to keyboard shortcut Ctrl + Q, which implements the function of translating text and replacing the translation results with the original text box. Supports Issue and pull request pages.

Help

Recommended browser and script manager:

  • Greasemonkey + Waterfox
  • Tampermonkey/Violentmonkey + Firefox
  • Tampermonkey/Violentmonkey + Chrome
  • Userscripts + ios Safari
  • Violentmonkey/KiWiBrowser + Android

If you need to learn more about how to install user scripts,Click meView the teaching of pictures and texts!

View all publish scripts

🔍You may be looking forChatGPTRelated scripts

🔍You may be looking for web-related scripts

  • Web page writing clip version authorization manager: Manage the writing behavior of web pages to the clipboard to prevent unauthorized automatic copying and disable audio and video content preloading and automatic playback.
  • RemovalCSDNLog in to copy: Go fuck youCSDNLog in to copy,Copy without logging in
  • Beautify web forms with gorgeous gradients: Automatically apply color gradients to all columns of the table to beautify it
  • Highlight keywords on the web: Highlight text on the web page,If it helps you,Can be modified and used at will
  • Highlight web keywords: Custom keyword highlighting on web pages including dynamic loading when scrolling
  • Small window preview: Open link in popup window when dragging link,and provide a preview before opening,use Edge pre-reading technology。At the same time, add an acrylic effect behind the small window when it is opened.。
  • Remove link underline: Remove link underlines on all sites,and handle new links dynamically
  • scroll button: Generate two buttons on the right side of the page for scrolling the page
  • Pin to top and bottom buttons: Generate two buttons on all pages,One for smoothing back to the top,One for continuous scrolling to the bottom,Click again to cancel scroll to bottom
  • MarkDown Cloud Cut Notes: A tool that converts web content to Markdown format, supports features such as copying, downloading, and sending to GitHub and Obsidian.

🔍You may be looking forGitHubRelated scripts

  • GitHub Submit information display web view: This script will GitHub The submission information on HTML view,to see submission details more clearly。It will automatically submit the information list、The commit header and latest commit information are converted to HTML Format,Provide better visual effects and user experience。
  • Open jsDelivr link on Github: Open the GitHub link on jsDelivr to quickly download files
  • GitHub warehouse quick jump assistant: 🤠 GitHub warehouse quick jump assistant, specially designed to help users quickly access their own warehouses on GitHub. It generates a button at the top of the navigation bar. Click to expand all your repositories and easily jump to your own GitHub repository page without using GitHub’s secondary menu.
  • GitHub File list beautifier: GitHub File List Beautifier is a user script,used to enhance GitHub Display effect of files in warehouse。It can add colors to files and folders,and replace the file type icons with small images,Makes the code base easier to browse and manage。Add colors and icons to files by type,Display small images in place of file type icons in repository source tree
  • Github List of code languages show all: Expand Github List of languages on the repository,Show each language,Instead of hiding small parts in“other”Down
  • GitHub Automatically confirm device authorization: existGitHubThe authorization page automatically enters the authorization code and automatically confirms it.。
  • GitHub folder downloader: Add a download button,Allows easy downloading of specific GitHub folder。
  • Github Copy original file URL with download files: Add button at the end of each file line,to copy the original file URL and download files
  • 🤠 Github enhanced assistant warehouse display size: 🤠 Warehouse display size: On GitHub’s code search, warehouse search, issue page, user warehouse list and repository page, the size of the warehouse will be displayed next to the warehouse name, allowing users to quickly understand the scale of the warehouse and optimize their selection. Inactive development warning: If a repository has not been updated in the past six months, the system will add a prompt at the top of the repository to remind users that the repository is inactive and display the time of the last update. This helps users determine the activity and maintenance status of the warehouse. Quick jump within the warehouse: When browsing the warehouse, the user can easily view the list of all warehouses of the user, providing an entrance to quickly jump to different warehouses. Users can quickly find and access other projects of interest, improving work efficiency. Usage scenarios: Developers: By displaying the warehouse size and active warnings, you can quickly filter out suitable libraries for development and avoid using projects that are no longer maintained. Project Manager: Through the quick jump function, it is easy to manage and coordinate multiple projects and improve work efficiency. Learners: When learning new technologies, they can more easily find relevant open source projects and quickly check the activity and scale of the projects. 🤠
  • GitHub Sort by date: Change file sorting to descending by date,Conveniently view the latest updated files。
  • GitHub Gist code snippet copy and downloader: Add a copy button to the Gist file to make the code easily copied. | Add a download button to the Gist file to easily download the code.
  • GitHub shortcut key translation assistant: Listen to keyboard shortcut Ctrl + Q, which implements the function of translating text and replacing the translation results with the original text box. Supports Issue and pull request pages.

🔍You may be looking forGoogleRelated scripts

🔍You may be looking forGreasyForkRelated scripts

  • Greasy forkScript pages are suitable for URL enhancement: Script details page is suitable for searches without default redirection Turn to a clickable text link and pop up
  • GreasyFork User-published script data visualization: useChart.jsObtaining and visualizing user script data,And generate a chart on the user’s personal homepage to display the detailed installation status below.
  • GreaysFork EnhanceWebHookSync settings: GreaysFork Quickly enter script synchronization information,And add language codes for multiple countries in batches,Instead of clicking the selection boxes one by one and going to the corresponding URL。
  • GreasyFork markdown: The default format used in the forum isMarkdown,Add format help link and publish new script,Reply time toolbar with quick editing enabled
  • Greasyfork Script to display ratings: Add script rating after script name when browsing script list
  • GreasyFork Search: Search using GoogleGreasyForkandSleazyForkupper script
  • GreasyFork: Navigation bar enhancement: Add user list on navigation bar,console,Collection etc...
  • Greasyfork Glue craftsman: for Greasyfork Provide various usage functions,absolute time,Web widescreen,Script page enhancements,Download extension,Panel repair and a series of operations
  • GreasyFork Notification Assistant: When there’s a new reply to your script or to a discussion you’re participating in,The script will display the latest discussion content in a modal window on the web page。
  • Script Finder GreasyFork Script Lookup: Script Finder Find on any website that applies to that website GreasyFork Script。
  • Greasyfork Display registration time: If your script interferes with the interests of some people, it is not surprising to receive malicious negative reviews. There are two characteristics of malicious negative reviews: one is that the account is usually newly registered, and the other is that the negative reviews will be given shortly after registration, and there will be basically no follow-up activities. This script gets the registration time of the greasyfork user and is displayed next to the user name. If the time displayed next to the user name is the future time, then the user is likely to be a malicious account registered.

🔍You might be looking for adult scripts

🔍You may be looking for automatic translation

  • Foreign Language Terminator: Recognize non-Chinese characters,If the length is greater than5And the translated text does not contain Chinese,Then translate and replace the original text to Chinese
  • Web Translation——Automatic translation into Chinese: Give each non-Chinese web page the bottom right corner(Can be adjusted to the lower left corner)Add onegoogleTranslation icon,This version is a Chinese translation,Translate only foreign languages ​​to Chinese,Add automatic translation
  • Translation widget | Translate any language: Translation of any language and shortcut one-click translation of the language you want | Page Translation | Select text (press Ctrl) | Provide shortcuts, just press one key to quickly translate the language you want | English learning | Translation can be set and supports most common languages ​​around the world | Feedback if you have any questions

🔍You might be looking for social media scripts

  • Twitter/X Hide retweeted posts: Automatically hide forwarded content and hide forwarded content on first loading to remove annoying ads
  • Twitter Media Download: Download videos/pictures with one click | and automatically package them as a ZIP file to download during batch download
  • YouTube Assistant: YouTube 1. Video loop playback 2. Screenshot download 3. Theme progress bar