javascript:const proxyUrl=(url)=>{try {url=new URL(url);url.host=url.host.replace(/\./g,'-')+'.translate.goog';url.searchParams.append('_x_tr_sl','en');url.searchParams.append('_x_tr_tl','en');return url.href;}catch(e){}};document.location=proxyUrl(prompt('Enter URL to proxy through Google Translate:'));
Created
February 21, 2022 23:57
-
-
Save jdgregson/90f68f7499bd4105fd617503cb1593dc to your computer and use it in GitHub Desktop.
Google Translate proxy bookmarklet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment