Skip to content

Commit dd2c894

Browse files
committed
Update Google Translate.js
1 parent d44049b commit dd2c894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/Google Translate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (window.getSelection) {
66
selection = document.selection.createRange().text;
77
}
88
if (selection === undefined || selection.length === 0) {
9-
window.open('https://translate.google.com/?op=websites&langpair=auto%7Cauto&u=' + encodeURIComponent(location.href), '_blank').focus();
9+
window.open('https://translate.google.com/translate?langpair=auto%7Cauto&u=' + encodeURIComponent(location.href), '_blank').focus();
1010
} else {
1111
window.open('https://translate.google.com/?op=translate&langpair=auto%7Cauto&ie=' + encodeURIComponent(document.characterSet) + '&text=' + encodeURIComponent(selection), '_blank').focus();
1212
}

0 commit comments

Comments
 (0)