Last active
April 22, 2020 08:18
-
-
Save jruz/ab04e64307509a9f707082c9ae5e5355 to your computer and use it in GitHub Desktop.
Translate 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
const url = window.location.href; | |
const from = 'de'; | |
const to = 'en'; | |
window.location = `https://translate.google.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sp=nmt&sl=${from}&tl=${to}&u=${url}&usg=ALkJrhgFXBxmp9mZ82ra1aJs6sIW4z3EWA`; |
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
const url = window.location.href; | |
const from = 'de'; | |
const to = 'en'; | |
window.location = `https://www.translatetheweb.com/?from=${from}&to=${to}&dl=${to}&a=${url}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment