Skip to content

Commit 397ff76

Browse files
committed
Update Google Translate.js
1 parent 20cee85 commit 397ff76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascripts/Google Translate.js

Lines changed: 2 additions & 2 deletions
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) {
9-
location.href = 'https://translate.google.com/translate?langpair=auto%7Cauto&u=' + encodeURIComponent(location.href);
9+
location.href = 'https://translate.google.com/?op=websites&langpair=auto%7Cauto&u=' + encodeURIComponent(location.href);
1010
} else {
11-
location.href = 'https://translate.google.com/translate?langpair=auto%7Cauto&ie=' + encodeURIComponent(document.characterSet) + '&text=' + encodeURIComponent(selection);
11+
location.href = 'https://translate.google.com/?op=translate&langpair=auto%7Cauto&ie=' + encodeURIComponent(document.characterSet) + '&text=' + encodeURIComponent(selection);
1212
}

0 commit comments

Comments
 (0)