Skip to content

Instantly share code, notes, and snippets.

@lucifr
Created September 22, 2011 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucifr/1234364 to your computer and use it in GitHub Desktop.
Save lucifr/1234364 to your computer and use it in GitHub Desktop.
> 这是一个 Quix 内置命令中文版文件
>
> 要查看更多关于 Quix 命令的编写请参考 http://quixapp.com/syntax/ 或是查看 Lucifr 翻译的中文手册 http://lucifr.com/quix
>
#kill-defaults
@基本命令
@这些是 Quix 内置的最为基本的命令,但可能也是最为强大的一些命令。
a http://www.amazon.com/s/?field-keywords=%s Amazon(亚马逊英文) 搜索
d http://www.google.com/search?q=define:%s Google 定义一个词语
dict http://www.google.com/dictionary?langpair=en%7Cen&q=%s&hl=en&aq=f Google 词典搜索
e mailto:?subject=%t&body=%s%0A%0A%09%r%0A%0A 通过 Email 发送当前页链接
f http://flickr.com/search/?q=%s Flickr 搜索
fc http://flickr.com/search/?q=%s&l=comm 以CC商业使用为条件搜索 Flickr
find javascript:s='%s';if(s==''){void(s=prompt('Find%20text:',''));}s='('+s+')';x=new%20RegExp(s,'gi');rn=Math.floor(Math.random()*100);rid='z'%20+%20rn;b%20=%20document.body.innerHTML;b=b.replace(x,'<span%20name='%20+%20rid%20+%20'%20id='%20+%20rid%20+%20'%20style=\'color:#000;background-color:yellow;%20font-weight:bold;\'>$1</span>');void(document.body.innerHTML=b);alert('Found%20'%20+%20document.getElementsByName(rid).length%20+%20'%20matches.');window.scrollTo(0,document.getElementsByName(rid)[0].offsetTop); 在当前页面查找,使用方法:输入“find test”后可将当前页面中所有的“test”一词高亮显示,并滚动屏幕至第一个“test”处;只输入“find”,则会打开一个可输入关键词的提示框
g http://www.google.com/search?q=%s Google 搜索
gbs http://blogsearch.google.com/blogsearch?q=%s Google 博客搜索
imdb http://www.imdb.com/find?s=all&q=%s IMDB 搜索
img http://www.google.com/images?q=%s Google 图片搜索
map http://www.google.com/maps?q=%s Google 地图搜索
gs http://www.google.com/search?q=site:%d%20%s 在 Google 中搜索当前网站
nf http://www.netflix.com/Search?v1=%s Netflix 搜索
php http://php.net/search.php?show=quickref&pattern=%s PHP 函数搜索
tr http://translate.google.com/translate?u=%r&tl=%s 翻译当前网页
w http://wikipedia.org/wiki/Special:Search/%s_ Wikipedia 搜索
mh http://www.mahalo.com/search?q=%s Mahalo 搜索
read javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-narrow';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';_readability_css.media='screen';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='http://lab.arc90.com/experiments/readability/css/readability-print.css';_readability_print_css.media='print';_readability_print_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_print_css);})(); 增强当前页面可读性
@社会化服务类命令
@以下命令多用于一些社会化的网站及服务。
db http://delicious.com/save?url=%r&title=%t&v=5&jump=yes&tags=%s 将当前页加入美味书签(Delicious)
fb http://www.facebook.com/share.php?u=%r&t=%t 在 Facebook 分享当前页
gb http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=%r&title=%t&annotation=%s 将当前页加入 Google 书签
tn http://twitter.com/home?status=%s%20%t%20%rs 在 Twitter 上发表当前页(标题)
s http://search.twitter.com/search?q=%s Twitter 搜索
t http://twitter.com/%s 转到 Twitter 上的相应用户的页面
v http://vimeo.com/videos/search:%s Vimeo 搜索
yt http://www.youtube.com/results.php?search_query=%s Youtube 搜索
tumblr javascript:d=document;w=window;e=w.getSelection;k=d.getSelection;x=d.selection;s=(e?e():(k)?k():(x?x.createRange().text:0));f='http://www.tumblr.com/share';l=d.location,e=encodeURIComponent;p='?v=3&u='+e(l.href)%20+'&t='+e(d.title)%20+'&s='+e(s);u=f+p;try{if(!/^(.*\.)?tumblr[^.]*$/.test(l.host))throw(0);tstbklt();}catch(z){a%20=function(){if(!w.open(u,'t','toolbar=0,resizable=0,status=1,width=450,height=430'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0) 分享至 Tumblr
post javascript:var%20b=document.body;POSTEROUS___bookmarklet_domain='http://posterous.com';if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.type='text/javascript');void(z.src='http://posterous.com/javascripts/bookmarklet2.js');void(b.appendChild(z));}else{} 分享至 Posterous
su http://www.stumbleupon.com/submit?url=%r&title=%t 提交至 StumbleUpon
@WordPress
@Quix 的作者 <a href="http://yoast.com">Yoast</a> 同时也是一位 Wordpress 的狂热爱好者,因此一些 Wordpress 相关的命令肯定是必不可少的了。
codex http://www.google.com/search?q=site:codex.wordpress.org%20%s 搜索 WordPress codex
plugin http://www.google.com/cse?cx=006835583451239722573%3A15duy8wtjos&ie=UTF-8&q=%s&sa=Search&siteurl=www.google.com%2Fcse%2Fhome%3Fcx%3D006835583451239722573%3A15duy8wtjos 搜索 WordPress 插件
wp http://xref.yoast.com/fsearch.php?s=%s&version=trunk WordPress 函数搜索
wpmu http://xref.yoast.com/fsearch.php?s=%s&version=mutrunk WordPress MU 函数搜索
wpseek http://wpseek.com/%s/ 通过 wpseek.com 搜索 WordPress 函数
@SEO(搜索引擎优化)
@作为 SEO ,对于一个网站肯定有很多要检查的东西,Quix 旨在于将这些东西打包成一组易于记忆的命令。
archive http://web.archive.org/web/*/%r 在 archive.org 搜索当前页面
can http://www.nickgerner.com/canonicalizable/?homepage_input=%d 查看当前域名的主页是否指向正确
dmoz http://search.dmoz.org/cgi-bin/search?search=%d 在 DMOZ 搜索当前域名
gbd http://blogsearch.google.com/blogsearch?num=10&q=link%3A%d 在 Google 博客搜索指向当前域名的链接
gbu http://blogsearch.google.com/blogsearch?num=10&q=link%3A%r 在 Google 博客搜索指向当前URL的链接
gc http://google.com/search?strip=1&q=cache:%r%20%s 当前网页在 Google 的快照(Cache)
gi http://google.com/insights/search/#q=%s&cmpt=q 在 Google Insight 搜索关键词
gwt https://www.google.com/webmasters/tools/dashboard?hl=en&siteUrl=%r 当前域名的 Google Webmaster Tools (Google 网站管理工具)
h http://quixapp.com/headers/?r=%r&s=%s 当前网页的 Header 信息
kd http://tools.davidnaylor.co.uk/keyworddensity/?url=%r&keyword=%s <a href="http://tools.davidnaylor.co.uk/keyworddensity/">Keyword Density 查询</a>(关键词密度查询)及更多
linkcheck http://validator.w3.org/checklink?uri=%r 查询当前 URL 所含的链接状态
maj https://www.majesticseo.com/search.php?q=%d 用 <a href="http://www.majesticseo.com/">Majestic SEO</a> 检查当前域名的热门页面及反向链接
nofollow style:http://quixapp.com/js/nofollow.css 高亮显示页面中所有包含 nofollow 属性的链接
seo http://quixapp.com/seo/?r=%r 针对当前页面进行一个快速的 seo 检查
seothis javascript:var%20w=window.open('http://quixapp.com/seo/?r=%r');window.open('http://quixapp.com/headers/?r=%r&s=%s');window.open('http://google.com/search?q=cache:%r&strip=1');window.open('https://siteexplorer.search.yahoo.com/search?p=%r&bwm=i&bwmo=d&bwmf=u');w.focus(); 弹出所有的 seo 查询结果
yd https://siteexplorer.search.yahoo.com/search?p=%d&bwm=i&bwmo=d&bwmf=s 在 Yahoo 搜索当前域名的反向链接
yl https://siteexplorer.search.yahoo.com/search?p=%r&bwm=i&bwmo=d&bwmf=u 在 Yahoo 搜索当前页面的反向链接
ydir http://search.yahoo.com/search/dir?ei=UTF-8&p=%d&h=c 在Yahoo! directory(Yahoo! 网站目录)搜索当前域名
kwte https://adwords.google.com/select/KeywordToolExternal 转到 AdWords 关键字工具
@网站管理员
@同样,网站管理者们也要对自己的网站进行很多的检查,Quix 也对众多的类似服务进行了精选,并赋予好记的命令。
csstoggle javascript:var%20Lt=document.getElementsByTagName('LINK');for(var%20x=0,ss=[];Lt[x];x++){var%20rel=Lt[x].rel;if(typeof(rel)=='string'&&rel.toLowerCase().indexOf('style')+1){ss[ss.length]=Lt[x];}}for(var%20x=0;ss[x];x++){ss[x].disabled=!ss[x].disabled;} 开关当前页面的样式表(CSS)
firebug javascript:firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug); 读入 <a href="http://getfirebug.com/lite.html">Firebug lite</a>.
font javascript:(function()%20{if(typeof%20jQuery=='undefined'){var%20jqit=document.createElement('script');jqit.type='text/javascript';jqit.src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';document.getElementsByTagName('head')[0].appendChild(jqit);}%20_my_script=document.createElement('script');_my_script.type='text/javascript';_my_script.src='http://font-friend.googlecode.com/svn/trunk/font-friend.js';document.getElementsByTagName('head')[0].appendChild(_my_script);})(); 打开字体调试工具 <a href="http://somadesign.ca/projects/fontfriend/">FontFriend</a>
host http://quixapp.com/host/%d/%s 当前域名的主机状态
myip http://quixapp.com/ip/ 用户当前的 IP 地址及浏览器信息
p3p http://validator.w3.org/p3p/20020128/p3p.pl?uri=%r 查询当前页面的 P3P 策略
register http://quixapp.com/register/%s 注册域名(举例:输入“<code>register test123.com</code>”)
resize javascript:s='%s';s2=s.split('%20');window.resizeTo(s2[0],s2[1]); 调整浏览器大小(在某些浏览器中只在单窗口情况下起效)
ruler script:http://quixapp.com/js/ruler.js 显示一个可通过拖曳测量页面中元素大小的尺子
sg javascript:(function(){var%20s=document.createElement('div');s.innerHTML='Loading...';s.style.color='black';s.style.padding='20px';s.style.position='fixed';s.style.zIndex='9999';s.style.fontSize='3.0em';s.style.border='2px%20solid%20black';s.style.right='40px';s.style.top='40px';s.setAttribute('class','selector_gadget_loading');s.style.background='white';document.body.appendChild(s);s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://www.selectorgadget.com/stable/lib/selectorgadget.js?raw=true');document.body.appendChild(s);})(); 调出<a href="http://www.selectorgadget.com/">SelectorGadget</a>:一个可指向及点击 CSS 元素的选择器
speed http://tools.pingdom.com/fpt/?url=%r 对当前 URL 进行 <a href="http://tools.pingdom.com/">Pingdom</a> 速度测试
spriteme script:http://spriteme.org/spriteme.js 将当前页面的背景图片通过 <a href="http://spriteme.org">Spriteme</a> 转为 Sprite 格式
vs http://onebuttonmouse.com/tools/isource/?url=%r 查看当前 URL 的源代码
w3c http://validator.w3.org/check?uri=%r&outline=1 用 W3C 标准检查当前页面
w3css http://jigsaw.w3.org/css-validator/validator?uri=%r 检查当前页面 CSS 的标准
whois http://quixapp.com/whois/%d/%s 当前域名的 Whois 信息
xray script:http://westciv.com/xray/thexray.js 用 <a href="http://www.westciv.com/xray/">XRAY</a> 检查当前页面
@Quix
@此组命令是为了更于方便地使用 Quix,并加入了 debug 除错功能。
debug http://quixapp.com/debug/?r=%r&s=%s&t=%t&d=%d&v=%v 对 Quix 进行纠错
help http://quixapp.com/help/#%s 帮助页面
quix http://quixapp.com/%s/ 到达相应的 Quix 页面
yoast http://www.google.com/search?q=%s%20site:yoast.com&btnI=I%27m+Feeling+Lucky 搜索 Yoast (Quix作者的网站)
@Analytics
@一些简单的用于探测网站中 Google Analytics 代码安装情况的脚本。
da script:http://quixapp.com/js/detect-analytics.js 探测当前页面的 Analytics 代码
ga script:http://quixapp.com/js/ga-analyzer.js 分析当前页面 Google Analytics 的设置
gaexport script:http://quixapp.com/js/ga-export.js 让 Google Analytics 的报告中显示更多的行数 (脚本原作者:<a href="http://arjansnaterse.nl/download-limit-google-analytics-export-part-2">Arjan Snaterse</a>)
@短URL服务
@一些用于缩短链接的服务。
trim http://tr.im/marklet?url=%r 用 <a href="http://tr.im/">Tr.im</a> 缩短当前 URL
bitly http://bit.ly/?v=3&u=%r&s=%s%20%t 用 <a href="http://bit.ly/">bit.ly</a> 缩短当前 URL
awesm http://create.awe.sm/url/share?target=%r 用 <a href="http://awe.sm/">awe.sm</a> 缩短当前 URL
bitlyside script:http://bit.ly/bookmarklet/load.js 打开<a href="http://bit.ly/pages/tools/sidebar/">Bit.ly 侧边栏</a>
@应用程序整合类命令
@与一些全平台的应用程序相整合的命令。
evernote javascript:(function(){EN_CLIP_HOST='http://www.evernote.com';try{var%20x=document.createElement('SCRIPT');x.type='text/javascript';x.src=EN_CLIP_HOST+'/public/bookmarkClipper.js?'+(new%20Date().getTime()/100000);document.getElementsByTagName('head')[0].appendChild(x);}catch(e){location.href=EN_CLIP_HOST+'/clip.action?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title);}})(); 将当前页加入 <a href="http://www.evernote.com/">Evernote</a> 剪辑
tubesock tubesock://%r 使用 <a href="http://stinkbot.com/Tubesock/">Tubesock</a> 下载视频
@Mac 系统整合类命令
@很多 Mac 系统的程序员会允许浏览器以类似 tweetie: 的URL来打开相应的程序,此类的命令就是利用了这一点。
cssedit cssedit:previewandextract?%r 在 <a href="http://macrabbit.com/cssedit/">CSSEdit</a> 中预览并提取当前页面
mars marsedit:title=%t&url=%r&text=%s 在 <a href="http://www.red-sweater.com/marsedit/">Marsedit</a> 新建一篇关于当前 URL 的博客文章
pukka pukka:url=%r&title=%t&extended=%s 将当前页加入 <a href="http://codesorcery.net/pukka">Pukka</a> 书签
tt tweetie:%su%20%t%20%r 用 <a href="http://www.atebits.com/">Tweetie</a> 发表关于当前页面的推(tweet)
snap littlesnapper://snap/%r 用 <a href="http://www.realmacsoftware.com/littlesnapper/">LittleSnapper</a> 截取当前页面的截图
delibar Delibar://bpost&!p!&%r&!p!&%t&!p!&%s 将当前页加入 <a href="http://www.delibarapp.com/">Delibar</a> 书签
shove shovebox://url?url=%r&title=%t 用 <a href="http://www.wonderwarp.com/shovebox/">Shovebox</a> 抓取当前页面
> 以下非 Quix 官方内置命令,为 Lucifr 为中国用户添加
@中文网站搜索
@一些国内的中文网站的搜索
sht http://shooter.cn/search/Sub:%s/?x=0&y=0& 到 Shooter.cn 搜索字幕
douban http://www.douban.com/subject_search?search_text=%s 在 Douban.com 搜索书籍、电影和音乐
gcn http://www.google.com/search?lr=lang_zh-CN&as_q=%s 在 Google 简体中文页面中搜索
vc http://www.verycd.com/search/folders/%s 搜索 VeryCD 资源
baidu http://www.baidu.com/s?ie=utf-8&wd=%s 百度搜索
trcn javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=auto|zh-CN&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=auto|zh-CN&tbb=1&ie='+e;}; 用 Google 翻译当前页面或所选部分文字为中文
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment