Script Summary: Highlight pre-determined text strings with lightweight script in all pages.| 在任意页面高亮指定的关键词。
Version: 1.41a
Intro | 简介
| This script is suitable for highlighting certain words across many web pages. For example, some keywords of a certain project or field are highlighted when you are browsing from site to site, so that you can quickly find the content of your focus. | 此脚本可以让固定的关键词在不同网页都上高亮。例如当你在浏览一个又一个的网站时,多个与某项目或领域相关的关键词都会一直高亮,使得你能更快找到你关注的内容。 |
Features | 特色
| -> Improved speed; -> Up to nine highlight colors; -> Support Autopagerize(http://userscripts.org/scripts/show/8551). | -》速度快捷; -》提供多达九种高亮颜色; -》支持 Autopagerize 脚本(http://userscripts.org/scripts/show/8551)。 |
Instruction | 用法简介
| Change keyword: from GreaseMonkey menu - "User script command" - "Highlight What Text?" command, enter keywords in the "Please input your keywords..." dialog, separated by commas, and click "OK". You can also press "Shift-Alt-H" to quickly call "Highlight What Text?" command. | 更改关键词:选择 GreaseMonkey 菜单 - “用户脚本命令” - “要高亮什么?”命令,然后在“请输入关键词……”对话框中输入关键词,用逗号分隔,然后点击“确定”按钮。 你同样能够通过按下“Shift-Alt-H”快捷键快速传唤“要高亮什么?”命令。 |
| Delete keyword: similar to the steps to change keyword, while just left the "Please input your keywords..." dialog empty and click "OK". | 删除关键词:跟更改关键词的步骤差不多,只是在“请输入关键词……”对话框中留空再点击“确定”按钮即可。 |
| Toggle highlight: press "Ctrl-Alt-H". A pop-up tip will tell you whether it is on or off. | 切换高亮:按下“Ctrl-Alt-H”组合键即可。一个弹出提示会告诉你高亮是启用还是关闭了。 |
| Renew highlight: when the page changes without a refresh, you can press "H" key when the caret is outside of any text input area, to renew highlight of the whole page. | 刷新高亮:如果页面内容在不刷新之下发生了改变,你可直接按“H”键(按之前要确认光标不再任何文本输入区域内)来重新高亮整个页面。 |
| TIP: In the "Please input your keywords..." dialog, using double commas can prevent words behind the double commas from being highlighted. It is useful for adding comments or suspending highlight of some words. | 提示:在“请输入关键词……”对话框中使用“双逗号”将防止其后的词被高亮,可用于添加注释或暂停部分词的高亮。 |
Update Log | 更新日志
2009.12.18Fix the bug cutting page title. | 修正会剪掉网页标题的问题。
2010.01.02
Fix the bug cutting words in input boxes; change the keyword separator to comma. | 修正会删掉文本框中已有文字的问题,改用半角逗号分隔关键词。
2010.01.07
Add feature: ignore letter case (option in the code); Fix the bug no response when no words are defined. | 增加忽略大小写特性;修正不指定关键词时不响应的问题。
2010.03.04 Version 1.20
Add GM menu command to change keywords, efficiency improved. | 增加 GM 菜单项用于更改关键词,提高高亮效率,允许中文逗号分隔关键词。
2010.03.04 Version 1.20a
Fix bug causing page style chaos when highlighting particular words. | 修正高亮某些词造成页面样式混乱问题。
2010.03.05 Version 1.20b
Fix bug causing error when only comma(s) is(are) set as keyword; change behavior for empty keyword. | 修正关键词只有逗号时运行出错问题;更改空关键词的行为。
2010.03.12 Version 1.21
Add "double commas" feature; fix bug emptying the prompt window after clicking "Cancel" last time; fix bug causing error when a comma is at the beginning or the end of the keywords. | 添加“双逗号”特性;修正上次按“取消”后下次打开提示窗口时关键词显示为空;修正关键词前或后有逗号时出错的问题。
2010.03.27 Version 1.22
For those whose want to customize the number of highlight colors, this version makes it easier: just change the "colorArray" in the code and here you go. | 此更新方便了那些想自定义高亮颜色数目的使用者:只要在代码中修改“colorArray”就行了。
2010.05.14 Version 1.30
Now it does not need a refresh to change keywords. | 更改高亮关键词不需要刷新了。
2010.05.24 Version 1.40
Add keyboard shortcut support; add visual notice. | 添加快捷键支持;添加视觉提醒。
2010.05.28 Version 1.41
Add keyboard shortcut support to renew highlight. | 添加刷新高亮的快捷键。
Version 1.41a
Fix a wrong activation when autopagerizing. | 修正自动翻页时会被错误触发的问题。



