File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ if (window.getSelection) {
66 selection = document . selection . createRange ( ) . text ;
77}
88if ( 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}
You can’t perform that action at this time.
0 commit comments