Skip to content

Instantly share code, notes, and snippets.

@jhthorsen
Created March 10, 2020 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhthorsen/6b0a635375f4491897dc8c5bc6825dea to your computer and use it in GitHub Desktop.
Save jhthorsen/6b0a635375f4491897dc8c5bc6825dea to your computer and use it in GitHub Desktop.
javascript:...
(function(d){let e=n=>d.createElement(n);let i=(p,c,r)=>p.insertBefore(c,r||null);let b=d.body;let v=i(b,e('div'),b.firstChild);v.id='gte';v.style.display='none';let o=e('script');o.src='//translate.google.com/translate_a/element.js?cb=gti';o.type='text/javascript';i(b,o);let p=e('script');p.text='function gti(){new google.translate.TranslateElement({pageLanguage:""},"gte")}';i(b,p)})(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment