It's been a while (more than a year, in fact) since the original Machine Assisted Visual Novel Reading. (If you're unfamiliar, it's recommended reading!) My programming skills have not advanced at all since then, sadly. However, for a while now, I've been using a cleaned up version of the previous script for my own purposes. Since I made a few simple but effective improvements, I figure it wouldn't hurt to spread it around, so here goes:
Essentially, you can push one button to translate with AI voice (in the case of unvoiced lines), and another to call just a regular translation without the AI voice (somehow your childhood friend lacks the same impact when she is accompanied by the echoing voice of a stilted computer
)
If you managed to get a copy of Neospeech Show or some other Japanese TTS voice, the Voice_Translate function works in conjunction with the VW TTS-Test-Application that is included with such software. Make sure it's running, of course.
The old clicking on active window thing was functional but rather inefficient. Now, any hotkey you desire should work. Watch out for conflicts though.
Notes and Errata:
This revision of the script was created for use with Twinkle☆Crusaders, do check it out^^ Rename the script file as you like. Modify as necessary.
Note: Read the code comments!

I personally paste directly into firefox, within a textarea.
Doing this aloow me to have bigger fonts which is usefull for reading kanji.
the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>agth</title>
</head>
<body>
<textarea cols="20" rows="20" style="font-size:26px">test</textarea>
</body>
</html>





| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||