<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>live@haliluya &#187; bookmarklet</title>
	<atom:link href="http://live.haliluya.org/weblog/tag/bookmarklet/feed/" rel="self" type="application/rss+xml" />
	<link>http://live.haliluya.org/weblog</link>
	<description>Yang Jing's Weblog</description>
	<lastBuildDate>Sat, 19 Mar 2011 07:25:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Dict.cn在线词典及Bookmarklet</title>
		<link>http://live.haliluya.org/weblog/2007/07/18/dict_cn_and_bookmarklet/</link>
		<comments>http://live.haliluya.org/weblog/2007/07/18/dict_cn_and_bookmarklet/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 05:45:29 +0000</pubDate>
		<dc:creator>Yang Jing</dc:creator>
				<category><![CDATA[Web n.0]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[Dict.cn]]></category>
		<category><![CDATA[在线字典]]></category>

		<guid isPermaLink="false">http://live.haliluya.org/weblog/2007/07/18/dict_cn_and_bookmarklet/</guid>
		<description><![CDATA[在LinuxToy那里知道了Dict.cn这个海量在线词典。划词助手这个功能很不错，通过Bookmarklet的方式来实现。 之前抄了个查雅虎字典的Bookmarklet，这次简单替换一下，变成查Dict.cn词典的Bookmarklet。^_^（... ]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://linuxtoy.org/archives/dictcn.html">LinuxToy</a>那里知道了<a href="http://dict.cn/">Dict.cn</a>这个海量在线词典。<a href="http://dict.cn/tools.html#hczs">划词助手</a>这个功能很不错，通过Bookmarklet的方式来实现。</p>
<p>之前抄了个<a href="http://live.haliluya.org/weblog/2007/04/05/zidan_cn_yahoo_bookmarklet/">查雅虎字典的Bookmarklet</a>，这次简单替换一下，变成查Dict.cn词典的Bookmarklet。^_^（下面两个链接另存为书签就可以了）<br />
<a href="javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) location=%22http://dict.cn/search/?q=%22 + e.replace(/ /g, %22%22); void 0">查Dict.cn词典</a><br />
<a href="javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) void(cha=window.open('http://dict.cn/search/?q=' + e, '_blank',  'scrollbars=yes,width=600,height=450,left=75,top=20,status=no,resizable=yes'));cha.focus();">查Dict.cn词典（新窗口）</a></p>
<p>注: 没有选中词时点查Dict.cn词典的bookmarklet会弹出一个单词输入窗口；中英文兼可查询。</p>
<p>不过有划词助手，这个bookmarklet也没多少用处了。<br />
划词助手目前似乎不能查询文字输入框里的词，比如在Google文档里编辑的字词。</p>
]]></content:encoded>
			<wfw:commentRss>http://live.haliluya.org/weblog/2007/07/18/dict_cn_and_bookmarklet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>雅虎字典的Bookmarklet</title>
		<link>http://live.haliluya.org/weblog/2007/04/05/zidan_cn_yahoo_bookmarklet/</link>
		<comments>http://live.haliluya.org/weblog/2007/04/05/zidan_cn_yahoo_bookmarklet/#comments</comments>
		<pubDate>Thu, 05 Apr 2007 06:59:51 +0000</pubDate>
		<dc:creator>Yang Jing</dc:creator>
				<category><![CDATA[Web n.0]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[雅虎字典]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[在线字典]]></category>

		<guid isPermaLink="false">http://live.haliluya.org/weblog/2007/04/05/zidan_cn_yahoo_bookmarklet/</guid>
		<description><![CDATA[最近，我都是使用雅虎字典，觉得不错，就是取词不方便。想到Bookmarklet（也称书签栏快捷键、Javascript快捷键）应该可以简化取词过程，搜，果然，Jan&#8217;s Tech Blog有这样的Bookmarklet。只是字典... ]]></description>
			<content:encoded><![CDATA[<p>最近，我都是使用<a href="http://zidian.cn.yahoo.com/index.html">雅虎字典</a>，觉得不错，就是取词不方便。想到<a href="http://www.bookmarklets.com/about/">Bookmarklet</a>（也称书签栏快捷键、Javascript快捷键）应该可以简化取词过程，搜，果然，Jan&#8217;s Tech Blog有<a href="http://www.azuremedia.net/tech/history/web/001283.html">这样的Bookmarklet</a>。只是字典是香港Yahoo和香港新浪的，就修改成查雅虎字典的。成品如下，用鼠标拖曳到书签栏就可以了。</p>
<p><a href="javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) location=%22http://zidian.cn.yahoo.com/result_en2cn.html?p=%22 + e.replace(/ /g, %22%22); void 0">查雅虎字典</a><br />
<a href="javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) location=%22http://zidian.cn.yahoo.com/result_en2en.html?p=%22 + e.replace(/ /g, %22%22); void 0">查雅虎字典（英英）</a><br />
<a href="javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) void(cha=window.open('http://zidian.cn.yahoo.com/result_en2cn.html?p=' + e, '_blank',  'scrollbars=yes,width=600,height=450,left=75,top=20,status=no,resizable=yes'));cha.focus();">查雅虎字典（新窗口）</a><br />
<a href="javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) void(cha=window.open('http://zidian.cn.yahoo.com/result_en2en.html?p=' + e, '_blank',  'scrollbars=yes,width=600,height=450,left=75,top=20,status=no,resizable=yes'));cha.focus();">查雅虎字典（英英-新窗口）</a></p>
<p>p.s: 同样不支持查中文</p>
<p>我大概说一下如何修改，客官们也可以自己按需定制。（我不懂<a href="http://www.baidu.com/s?wd=javascript&#038;cl=3">Javascript</a>，完全是依葫芦画瓢）<br />
<span id="more-249"></span><br />
Jan&#8217;s Tech Blog的Yahoo!字典代码是:</p>
<p><coolcode>javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E9%82%8A%E5%80%8B%E5%AD%97%EF%BC%9F%22, %22%22);if (e!=null) location=%22http://hk.dictionary.yahoo.com/dict?s=%22 + e.replace(/ /g, %22+%22); void 0</coolcode></p>
<p>这个Bookmarklet的好处是即使没有选中单词，直接点击也会弹出一个对话框让你输入单词。</p>
<p>我修改的查雅虎字典代码是:</p>
<p><coolcode>javascript:e = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!e) e = prompt(%22%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F%22, %22%22);if (e!=null) location=%22http://zidian.cn.yahoo.com/result_en2cn.html?p=%22 + e.replace(/ /g, %22%22); void 0</coolcode></p>
<p>其中<em>%22</em>是双引号&#8221;，<em>%E6%83%B3%E6%9F%A5%E4%BB%80%E4%B9%88%E5%AD%97%3F</em>是符号化的“想查什么字”。（在Wordpress里放Bookmarklet，必须把双引号和中文字符转化成%的鬼画符）两相对照，就可以发现我仅是把<em>http://hk.dictionary.yahoo.com/dict?s=</em>替换成<em>http://zidian.cn.yahoo.com/result_en2cn.html?p=</em>。英英字典也只不过是把<em>en2cn</em>改为<em>en2en</em>。</p>
<p>查雅虎字典（新窗口）代码多了下面一段:</p>
<p><coolcode>void(cha=window.open(&#8216;http://zidian.cn.yahoo.com/result_en2cn.html?p=&#8217; + e, &#8216;_blank&#8217;,  &#8216;scrollbars=yes,width=600,height=450, left=75,top=20,status=no,resizable=yes&#8217;));</coolcode></p>
<p>窗口样式可以<a href="http://www.baidu.com/s?wd=window%2Eopen+%B2%CE%CA%FD&#038;lm=0&#038;si=&#038;rn=10&#038;ie=gb2312&#038;ct=0&#038;cl=3&#038;f=1&#038;rsp=1">自定参数</a>设置。</p>
<p>更多功能的Bookmarklet可以到<a href="http://www.bookmarklets.com/">这里</a>查找。</p>
]]></content:encoded>
			<wfw:commentRss>http://live.haliluya.org/weblog/2007/04/05/zidan_cn_yahoo_bookmarklet/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>秀下bookmarklet</title>
		<link>http://live.haliluya.org/weblog/2006/03/24/%e7%a7%80%e4%b8%8bbookmarklet/</link>
		<comments>http://live.haliluya.org/weblog/2006/03/24/%e7%a7%80%e4%b8%8bbookmarklet/#comments</comments>
		<pubDate>Sat, 25 Mar 2006 06:32:00 +0000</pubDate>
		<dc:creator>Yang Jing</dc:creator>
				<category><![CDATA[Web n.0]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[秀]]></category>
		<category><![CDATA[list]]></category>

		<guid isPermaLink="false">http://live.haliluya.org/weblog/?p=55</guid>
		<description><![CDATA[秀完了firefox extension，又来秀秀bookmarklet。 bookmarklet就是javascript和url的混合物。具体就是把原本需要多次点击的任务简化为一次点击。 在firefox下安装bookmarklet很简单，比如这个zoom images in，只要... ]]></description>
			<content:encoded><![CDATA[<p>秀完了<a href="http://live.haliluya.org/2006/03/listfirefox-extensions.html">firefox extension</a>，又来秀秀<a href="http://www.answers.com/main/ntquery?s=bookmarklet&amp;gwp=13">bookmarklet</a>。</p>
<p>bookmarklet就是javascript和url的混合物。具体就是把原本需要多次点击的任务简化为一次点击。<br />
在firefox下安装bookmarklet很简单，比如这个<a href="%28function%28%29%7B">zoom images in</a>，只要把url拖到bookmark toolbar上，就可以使用了。下面就是我使用的bookmarklet list。</p>
<p>Sub with Bloglines : 这个很明白了吧</p>
<p>Adminify Blog : 这个是<a href="http://live.haliluya.org/2006/02/labelr-organize-blogger-posts.html">Labelr</a>专用的</p>
<p>coComment! : 配合<a href="http://live.haliluya.org/2006/02/cocomment.html">coComment</a>的</p>
<p><a href="http://flagrantdisregard.com/flickr/bookmarklet.php">Flickr Toys</a></p>
<p>GmailThis! : 用Gmail发送当前页</p>
<p>BlogThis! : 向blogger发布当前页</p>
<p>validate html : 检查当前页是否符合W3C标准（不要测试我的，n多错）</p>
<p>what&#8217;s the similar : 查看那些网站与正浏览的相似</p>
<p>view style sheet : 查看当前页的CSS</p>
<p>上面的这些可能都不合你的心意，可以到<a href="http://www.squarefree.com/bookmarklets/">Jesse&#8217;s Bookmarklets Site</a>找你喜欢的，<a href="http://del.icio.us/popular/bookmarklet">这里</a>也有。</p>
]]></content:encoded>
			<wfw:commentRss>http://live.haliluya.org/weblog/2006/03/24/%e7%a7%80%e4%b8%8bbookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

