Forked from samthecodingman/bookmarklet-gtranslate.js
Created
March 10, 2017 23:47
-
-
Save 3rd3/bdfb29607988186d3a38e02a85610612 to your computer and use it in GitHub Desktop.
Reload the current page in Google Translate (English) [Javascript 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:(window.location.href.indexOf("translate.google.com")>-1)?((new%20RegExp('[?&]u=([^&]*)')).exec(location.search)!=null)?window.location.assign("https://translate.google.com/translate?hl=en&sl=auto&tl=en&sandbox=1&u="+(new%20RegExp('[?&]u=([^&]*)')).exec(location.search)[1]):alert("Error:%20This%20google%20translate%20page%20does%20not%20have%20a%20url%20parameter."):window.location.assign("https://translate.google.com/translate?hl=en&sl=auto&tl=en&sandbox=1&u="+encodeURIComponent(window.location.href)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment