Last active
September 27, 2021 22:39
-
-
Save bayashi/f69103240deffbc72cc8a6d624665832 to your computer and use it in GitHub Desktop.
DeepL JA-EN bookmarklet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){Q=''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!Q)Q=prompt("Text?","");A=Q.match(/^[a-zA-Z\-\=\"\!\&\.\,\'\s]+$/)?'en/ja/':'ja/en/';if(Q)open('https://www.deepl.com/translator#'+A+encodeURIComponent(Q),'_blank');})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool thing, also recognizes other languages. Thanks!