<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml><card  id="index"  title="驽鸟公寓  &raquo; Blog Archive  小技巧:用简单的js语句定制自己的Chrome“插件” | 驽鸟公寓"  ><p>
			标题：小技巧:用简单的js语句定制自己的Chrome“插件”<br/>
			时间：2008-09-18 (5:23 下午)<br/>
			分类：<a href="index-wap.php?cat=9" title="View all posts in 电脑网络" >电脑网络</a><br/>
            标签：<a href="index-wap.php?tag=chrome">Chrome</a>, <a href="index-wap.php?tag=%e6%8f%92%e4%bb%b6">插件</a>, <a href="index-wap.php?tag=%e8%b0%b7%e6%ad%8c">谷歌</a><br/>
			作者：驽鸟<br/> 
            <br/>
            　　方便了站长们使用Chrome查看网站的各种参数，即时了解网站等收录情况等！方便了站长们使用Chrome查看网站的各种参数，即时了解网站等收录情况等！由于浏览器语言和编码不同，只修改了部分js语句，并未全部测试通过，有问题可发帖询问！以下由Chrome123.net翻译：

　　使用方法：把以下各js存在收藏夹里面，随时调用(建议放在书签栏)

Google Cache &#8212;&#8212; 查看当前域名的缓存页面，不经常使用（如果要查看当前网址的缓存页面则需要修改正则表达式）
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://www.google.com/search?hl=zh-CN&#38;q=cache:&#34;+escape(a);})())

Google Links &#8212;&#8212; 查看当前域名的反向链接
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://www.google.com/search?hl=zh-CN&#38;q=link:&#34;+escape(a);})())

Google Site &#8212;&#8212; 查看当前域名的收录情况
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://www.google.com/search?q=site:&#34;+escape(a);})())

Search for URL &#8212;&#8212; 搜索当前URL
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)$/,&#34;$1&#34;);location.href=&#34;http://www.google.com/search?hl=zh-CN&#38;q=&#34;+escape(a);})())

Google Images from Site &#8212;&#8212; 搜索当前域名中的图片
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://images.google.com/images?hl=zh-CN&#38;q=&#34;+escape(a);})())

Google Info&#160; &#8212;&#8212; 查找当前域名相关的信息（列表）
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://www.google.com/search?q=info:&#34;+escape(a);})())

Related Sites/Pages &#8212;&#8212; related命令
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://www.google.com/search?q=related:&#34;+escape(a);})())

Translate Page to English &#8212;&#8212; 把页面翻译成英文，同理可以将页面翻译成中文

&#160; 将其存为书签：
javascript:var%20t=((window.getSelection&#38;&#38;window.getSelection())&#124;&#124;(document.getSelection&#38;&#38;document.getSelection())&#124;&#124;(document.selection%20&#38;&#38;document.selection.createRange&#38;&#38;document.selection.createRange().text));var%20e=(document.charset&#124;&#124;document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&#38;hl=en&#38;tbb=1&#38;ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&#38;hl=en&#38;tbb=1&#38;ie='+e;};

Pages Indexed in Yahoo &#8212;&#8212; 当前域名在yahoo中的索引
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://search.yahoo.com/search?p=&#34;+escape(a);})())

Yahoo Backlinks &#8212;&#8212;当前页面在yahoo中的反向链接 将其存为书签：
javascript:location.href='http:/'+'/search.yahoo.com/search?p=linkdomain%3A'+document.domain.replace('www.','')+'%20-site%3a'+document.domain.replace('www.','')+'&#38;%23038;n=100';

Pages Indexed in MSN &#8212;&#8212; 当前域名在msn中的索引
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)$/,&#34;$1&#34;);location.href=&#34;http://search.msn.com/results.aspx?q=site:&#34;+escape(a);})())

Yahoo Directory &#8212;&#8212; yahoo目录？
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://search.yahoo.com/search/dir?h=c&#38;p=&#34;+escape(a);})())

Alexa Rank &#8212;&#8212; 不用说了，alexa排名！
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://alexa.com/data/details/traffic_details?q=&#38;url=&#34;+escape(a);})())

Compete.com Details &#8212;&#8212; 应该是在compete.com中的搜索结果
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://siteanalytics.compete.com/&#34;+escape(a);})())

Archive.org &#8212;&#8212; 在archive.org中的搜索结果
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://web.archive.org/web/*/&#34;+escape(a);})())

Delicious Bookmarks &#8212;&#8212; 著名的在线收藏夹
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://del.icio.us/url/check?url=&#34;+escape(a);})())

Technorati &#8212;&#8212; 貌似是一个rss订阅平台
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://technorati.com/search/&#34;+escape(a);})())

URL Mentions on Digg &#8212;&#8212;鼎鼎有名的Digg
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://digg.com/search?area=all&#38;age=all&#38;sort=new&#38;type=all&#38;s=&#34;+escape(a);})())

DomainTools Domain Lookup &#8212;&#8212; 有名的域名查询，国内一般不用这个！
&#160; 将其存为书签：
javascript:void((function(){var%20a=location.href.replace(/^http%5C:%5C/%5C/(.*)%5C/$/,&#34;$1&#34;);location.href=&#34;http://whois.domaintools.com/&#34;+escape(a);})())

Validate Page HTML at W3C &#8212;&#8212; 页面html的w3c验证
&#160; 将其存为书签：
javascript:location.href='http://validator.w3.org/check?uri='%20+%20document.location.href%20+%20%20&#160; '&#38;doctype=Inline';&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 

Validate Page CSS at W3C &#8212;&#8212; 页面css 的w3c验证
&#160; 将其存为书签：
javascript:javascript:location.href='http://jigsaw.w3.org/css-validator/validator?uri='%20+%20document.location.href;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 

Highlight Nofollow Links Red &#8212;&#8212; 高亮显示 nofollow链接
&#160; 将其存为书签：
javascript:var%20t=document.getElementsByTagName('a');for(i=0;i&#60;t.length;i++){if(t.rel.toLowerCase()=='nofollow'){void(t.style.color='red');}}

Show Domains Robots.txt&#160; &#8212;&#8212;查看网站根目录的robots.txt文件 将其存为书签：
javascript:void(location.href='http://'%20+%20location.host%20+%20'/robots.txt')&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 

Page Last Modified Date &#8212;&#8212;页面最新的修改时间 将其存为书签：
javascript:if(frames.length&#60;1){alert('The%20server%20indicates%20that%20the%20page%20was%20last%20modified:%20'%20+%20window.document.lastModified)}

Number of Links on a Page &#8212;&#8212; 现有页面上有多少个链接 将其存为书签：
javascript:if(frames.length&#60;1){alert('This%20page%&#160; 20has%20'%20+%20document.links.length%20+%20'%20links.')}
            <br/>	
            <span class="stamp">上一篇：</span><a href="index-wap.php?p=599">创业成功的10大准则</a><br/>            <span class="stamp">下一篇：</span><a href="index-wap.php?p=596">关于Web,你可能不知道的……</a><br/>    
                        
			<br/><a href="index-wap.php">返回首页</a>
<br/>切换访问：<a href="index-wap2.php">2.0版</a> | 1.1版
</p></card></wml>