Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rickdog/240408 to your computer and use it in GitHub Desktop.
Save rickdog/240408 to your computer and use it in GitHub Desktop.
javascript:{d=document;b=d.body;o=d.createElement('scri'+'pt');o.setAttribute('src','http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit');o.setAttribute('type','text/javascript');b.appendChild(o);v=b.insertBefore(d.createElement('div'),b.firstChild);v.id='google_translate_element';v.style.backgroundColor='#fff';p=d.createElement('scri'+'pt');p.text='function googleTranslateElementInit(){new google.translate.TranslateElement({pageLanguage:%22en%22},%22google_translate_element%22);}';p.setAttribute('type','text/javascript');b.appendChild(p);}void 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment