阅读:21367回复:23
StarDict的划词翻译和Greasemonkey脚本
今天刚刚上线的StarDict.org,拥有近千部词典,现在支持Ajax方式的划词翻译。
包装了个Greasemonkey脚本,脚本内容 // ==UserScript== // @name StarDict // @namespace https://www.firefox.net.cn/ // @description "Select and Translate" in web pages // @include * // @exclude http://www.stardict.org/* // ==/UserScript== var element=document.createElement('script'); element.setAttribute('src', 'http://www.stardict.org/initselect.php'); document.body.appendChild(element); 如果想定制词典的话,就必须到StarDict注册帐户了。 使用 http://www.stardict.org/selectandtrans.php 提供的Bookmarklet也不错。 have fun~ |
|
1楼#
发布于:2006-09-25 13:25
能否修改一下这个脚本,让它不在网页左上角显示那个小框,挺影响阅读的,尤其是有些小的帧里都显示这个,很不爽
|
|
|
2楼#
发布于:2006-09-25 13:25
咋就没人提咱的OakVocabulary呢.
https://addons.mozilla.org/firefox/2830/ 支持上面所说的几种词典, 可以自己定制和扩展. 同时支持多种语言. 包括一种很难学的语言西伯来文(Hebrew), 最近在这里出差 可以比较下,我想大家会喜欢它的. |
|
|
3楼#
发布于:2006-09-25 13:25
能不能加一个开关啊,默认为关闭,需要的时候再打开?
|
|
|
4楼#
发布于:2006-09-25 13:25
Well it's too cool!! I like it very much. I wonder if there's an independent Electro-dict under Linux which supports French, as this one requires as least Internet connection.
|
|
|
5楼#
发布于:2006-09-25 13:25
|
|
6楼#
发布于:2006-09-25 13:25
用户被禁言,该主题自动屏蔽! |
|
7楼#
发布于:2006-09-25 13:25
把其引用部分存为 .user.js格式
然后拉到ff中 然后安装 |
|
8楼#
发布于:2006-09-25 13:25
|
|
9楼#
发布于:2006-09-25 13:25
|
|
10楼#
发布于:2006-09-25 13:25
我这个新手怎么装不了那个脚本啊?请指教
|
|
11楼#
发布于:2006-09-25 13:25
|
|
|
12楼#
发布于:2006-09-25 13:25
好用,自己去定制下词典就更不错了
定制完后,脚本倒数第2行改成 element.setAttribute('src', 'http://www.stardict.org/initselect.php?user=用户名&passwd=加密后的密码串'); 在这里取得加密串~~~ http://www.stardict.org/selectandtrans.php |
|
|
13楼#
发布于:2006-09-25 13:25
不错
|
|
14楼#
发布于:2006-09-25 13:25
好是好,就是看见“划词”两个字很不舒服。
|
|
上一页
下一页