request!
|
|
First of all, thanks for at great script! Can we get some more control about where the "box" is showing? |
|
|
thanks
window.div.style.left=(window.event.screenX+window.scrollX+10).toString()+"px"
and change it to window.div.style.left=(window.event.screenX+window.scrollX+boxHorizonalPositionAwayFromCursor).toString()+"px"
for example: window.div.style.left=(window.event.screenX+window.scrollX+100).toString()+"px"
Then the box will 100 px away from the cursor (horizontally and vertically) |
|
|
Small request. I have an idea that I hope can be incorporated in your next update. 1) If the highlighted words are already the same language to be translated to, cancel script (or block the translation bubble from appearing). 2) If the highlighted words are not really words but instead text url links, or code (for example (window.event.screenY+window.scrollY+10) from above, this too cancels script. Really nice script. Thank you. |
|
|
i agree with avro. the box appearing for highlighted english translating it into english is the only reason i sometimes disable this script. i do occasionally highlight text for other reasons :-) otherwise this script is terrific! |
|
|
Great script, thanks. I too find it inconvenient to translate everything I mark. My proposal is to translate only if a predefined key is pressed. For example Shitft+Selection. |
![]() ![]() |
Replacing |
![]() ![]() |
I disabled it for english because i want to translate to english only in
window.detectLanguage=function(result) {
window.text = window.text.toString()
if (result.language != 'en')
{
unsafeWindow.google.language.translate(window.text,result.language,languageAfterTranslation.toString(),translateResult)
}
}
also, i changed |
![]() ![]() |
thanx, moditripit! i made your changes and love it! |

