<?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>A.shun&#039;s Blog &#187; Opera</title> <atom:link href="http://www.a-shun.com/archives/tag/opera/feed" rel="self" type="application/rss+xml" /><link>http://www.a-shun.com</link> <description></description> <lastBuildDate>Mon, 26 Jul 2010 16:19:55 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>通过参数给 Opera 指定多组不同的配置</title><link>http://www.a-shun.com/archives/21376.html</link> <comments>http://www.a-shun.com/archives/21376.html#comments</comments> <pubDate>Mon, 26 Jul 2010 14:28:18 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[软件心得]]></category> <category><![CDATA[Opera]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21376</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>很多人在一个浏览器中保留多组不同配置的需求，比如说有不同用途、不同场合、不同用户。<br /> 有时候也需要同时运行这些不同配置的浏览器，如：同时登陆不同帐号、功能对比、测试等。</p><p>不过用 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 的朋友却很少人需要为这方面费心思，因为实际上<span style="color: #ff6600;">多个安装在不同路径的 Opera 配置本来就不会互相干扰，也可以同时运行。</span></p><p>但一样可以<strong>通过带参数的快捷方式来给 Opera 指定多组不同的配置文件，实现只安装一次即可同时运行多个不同配置的 Opera。</strong><br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21376.html">通过参数给 Opera 指定多组不同的配置</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>很多人在一个浏览器中保留多组不同配置的需求，比如说有不同用途、不同场合、不同用户。<br /> 有时候也需要同时运行这些不同配置的浏览器，如：同时登陆不同帐号、功能对比、测试等。</p><p>不过用 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 的朋友却很少人需要为这方面费心思，因为实际上<span style="color: #ff6600;">多个安装在不同路径的 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 配置本来就不会互相干扰，也可以同时运行。</span></p><p>但一样可以<strong>通过带参数的快捷方式来给 Opera 指定多组不同的配置文件，实现只安装一次即可同时运行多个不同配置的 Opera。</strong><br /> <span id="more-21376"></span><br /> 如果你对　Opera　不够了解，建议先看:《<a href="http://www.a-shun.com/archives/21371.html">Opera 各种安装包的区别和便携化</a>》一文。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">Opera 指定配置快捷的方式参数</h2><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/opera_Settings.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/opera_Settings.jpg" alt="Opera 用户目录" width="407" height="243" /></a></p><p>Opera 绝大多数设置是在首选项配置文件（<strong>operaprefs.ini</strong>）中设定的，所以 Win 下的命令行参数很少。</p><p>不过也提供<strong>指定不同设置文件的参数</strong>。</p><pre style="width: 90color; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">/Settings 首选项配置文件路径</pre><p>使用方法，如：</p><pre style="width: 90color; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">opera.exe /Settings shun\operaprefs.ini</pre><p><span style="color: #ff0000;">operaprefs.ini 也可以不叫做 operaprefs ，相对路径和绝对路径均可。</span>如果路径不存在，通过该快捷方式运行 Opera 则会自动创建。<br /> 运行 Opera 后可在<a rel="external nofollow" href="opera:about"><img src="http://www.a-shun.com/img/ico/opera.png" alt="opera config" />opera:about</a> 中查看效果。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">修改 Opera 用户目录位置</h2><p>需要注意的是，<span style="color: #ff6600;">通过上面的快捷方式只是指定了首选项配置文件的路径</span>，如果其他配置文件没有在首选项中指定的话，则会保存在原来的用户目录中。建议查看前文的第三段《<a href="http://www.a-shun.com/archives/21371.html">3. 多用户和单用户模式</a>》。</p><p>你可以在 <a rel="external nofollow" href="opera:about"><img src="http://www.a-shun.com/img/ico/opera.png" alt="opera config" />opera:about</a> 中可以查看当前配置的路径。</p><p><span style="color: #ff6600;">如果用户目录相同，同时运行多个 op 则会提示出错</span>，也达不到我们的目的。<br /> 所以还要在首选项配置文件中指定　Opera　用户目录和本地目录。<br /> 在 [User Prefs] 下添加以下两行，</p><pre style="width: 90color; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Opera Directory={Resources}用户目录名
Opera Local Directory={Resources}用户目录名</pre><p>如：</p><pre style="width: 90color; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Opera Directory={Resources}shun
Opera Local Directory={Resources}shun</pre><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">自定义 Opera 缓存目录</h2><p>另外，缓存目录位置和永久缓存目录路径不会受到上面所做修改的影响。这也方便清理。<br /> 如果需要保护隐私，也可以在 operaprefs.ini 中，[User Prefs] 字段下，添加</p><pre style="width: 90color; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Cache Directory4=缓存路径</pre><p>建议使用环境变量和绝对路径。<br /> 永久缓存则是 Operator Cache Directory4，这个不改也罢。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">通过参数指定 Opera 配置文件的主要作用</h2><p>用这种方式的人还是较少。不过总的来说挺实用，主要是<span style="color: #ff0000;">方便测试</span>和<span style="color: #ff0000;">方便升级</span>。</p><p>还有其他作用，比如：你可以设置单用户模式，把默认的 profile 打造成一个便携的 usb 配置，自己的机器则用快捷方式启动。</p><p>当然，对于没有使用<a href="http://www.a-shun.com/archives/19661.html">同步软件</a>的习惯的朋友，也可以不改变用户目录，单独指定几个个人资料的文件（书签、笔记、cookies、wand、历史记录等），这样方便和家人共用一套设置，只分开用户资料。</p><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="通过参数给 Opera 指定多组不同的配置" href="http://www.a-shun.com/archives/21376.html"> 《通过参数给 Opera 指定多组不同的配置》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="通过参数给 Opera 指定多组不同的配置" href="http://www.a-shun.com/archives/21376.html">http://www.a-shun.com/archives/21376.html</a></p><p style='border-top:3px solid #CCC;'>© <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span> for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21376.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21376.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a> 的文章</h3><ul><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年05月19日  -- <a href="http://www.a-shun.com/archives/21360.html" title="Opera 中文 Wiki 上线">Opera 中文 Wiki 上线</a> (78)</li><li>2010年05月9日  -- <a href="http://www.a-shun.com/archives/21357.html" title="Flash Block For Opera/Firefox/Chrome">Flash Block For Opera/Firefox/Chrome</a> (91)</li><li>2010年04月13日  -- <a href="http://www.a-shun.com/archives/21352.html" title="支持多种上传方式可外链的相册推荐">支持多种上传方式可外链的相册推荐</a> (86)</li><li>2010年04月9日  -- <a href="http://www.a-shun.com/archives/21349.html" title="自动备份输入框内容：Textarea Backup Localstorage">自动备份输入框内容：Textarea Backup Localstorage</a> (60)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21376.html/feed</wfw:commentRss> <slash:comments>56</slash:comments> </item> <item><title>把强力小书签 Quix 整合到浏览器</title><link>http://www.a-shun.com/archives/21373.html</link> <comments>http://www.a-shun.com/archives/21373.html#comments</comments> <pubDate>Wed, 14 Jul 2010 05:42:13 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[资源分享]]></category> <category><![CDATA[软件心得]]></category> <category><![CDATA[Bookmarklet]]></category> <category><![CDATA[Opera]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21373</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/website"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/recommend.gif" alt="推荐" /></a><strong>Quix</strong>，是一个拥有多种命令、功能强大的指令型 <strong>Bookmarklet</strong>（小书签）。</p><p><span style="color: #008000;">这个一个顶 N 个的小书签，在很多程度上解放了你工具栏的空间和管理上的麻烦</span>（当然，代价是要花些许时间记住命令）。</p><p style="text-align: left;">很多知名博客都介绍过它，所以本文主要是讲在浏览器中更方便的使用 Quixapp 的技巧。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21373.html">把强力小书签 Quix 整合到浏览器</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/website"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/recommend.gif" alt="推荐" /></a><strong>Quix</strong>，是一个拥有多种命令、功能强大的指令型 <strong>Bookmarklet</strong>（小书签）。</p><p><span style="color: #008000;">这个一个顶 N 个的小书签，在很多程度上解放了你工具栏的空间和管理上的麻烦</span>（当然，代价是要花些许时间记住命令）。</p><p style="text-align: left;">很多知名博客都介绍过它，所以本文主要是讲在浏览器中更方便的使用 Quixapp 的技巧。<br /> <span id="more-21373"></span><br /> <a href="http://img.a-shun.com/web/web_quix_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/web/web_quix_02.jpg" alt="Quixapp" width="378" height="167" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">什么是 Quix，Quixapp 有多强大？</h2><p>主页：<a href="http://quixapp.com/">http://quixapp.com/</a><br /> Quix 就是一个适用于各种浏览器的 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/bookmarklet" title="查看 Bookmarklet 的全部文章" target="_blank">Bookmarklet</a></span>，作为浏览器功能的小补充。<br /> 但与普通的小书签不同的是，点击 quix 的 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/bookmarklet" title="查看 Bookmarklet 的全部文章" target="_blank">Bookmarklet</a></span> 之后，会以对话框的方式弹出一个输入框，在上面输入想要执行的指令即可。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">安装 Quixapp</h3><p><a rel="external nofollow" href="javascript:Quix();function%20Quix(){var%20e=encodeURIComponent;var%20t=window.getSelection?window.getSelection():(document.getSelection?document.getSelection():(document.selection?document.selection.createRange().text:''));var%20c=window.prompt('Quix:%20Type%20`help`%20for%20a%20list%20of%20commands:');if(t!=''){if(c){c+='%20'+t;}else{c=''+t;}}if(c){var%20u='http://quixapp.com/go/?c='+e(c)+'&amp;t='+(document.title?e(document.title):'')+'&amp;s='+'&amp;v=080'+'&amp;u='+(document.location?e(document.location):'');d=''+document.location;if(d.substr(0,4)!='http'){window.location=u+'&amp;mode=direct';}else{heads=document.getElementsByTagName('head');if(c.substring(0,1)=='%20'){var%20w=window.open(u+'&amp;mode=direct');w.focus();}else%20if(heads.length==0){window.location=u+'&amp;mode=direct';}else{q=document.getElementById('quix');if(q){q.parentNode.removeChild(q);}sc=document.createElement('script');sc.src=u;sc.id='quix';sc.type='text/javascript';void(heads[0].appendChild(sc));}}}}">Quixapp</a><br /> 将这个链接加入书签，或者拖到个人栏（收藏栏）即可。</p><p style="text-align: center;"><a href="http://img.a-shun.com/web/web_quix_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/web/web_quix_01.jpg" alt="quix 使用方法" width="377" height="152" /></a></p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">quix 的命令</h3><p>列举几个常用的命令来说明 Quixapp的强大。</p><ul><blockquote><li><span style="color: #008000;">read</span>，使用 Readability 来增强阅读体验。</li><li><span style="color: #008000;">bitly</span>，用 bit.ly 缩短当前 URL</li><li><span style="color: #008000;">kd</span>，分析当前页面信息、关键词密度、外链</li><li><span style="color: #008000;">whois</span>，显示当前域名的 Whois 信息</li><li><span style="color: #008000;">wp</span>，WordPress 函数搜索</li><li><span style="color: #008000;">nofollow</span>，高亮显示页面中所有包含 nofollow 属性的链接</li><li><span style="color: #008000;">firebug</span> ，启用 Firebug lite</li><li>...更多的命令：输入 help 即可转到官方帮助页面。</li></blockquote></ul><p>Quix 有上百个内置命令，总有你需要的。<br /> 而且还支持可以<strong>自定义命令</strong>，只要掌握一定的语法即可。<br /> 详见：<a href="http://quixapp.com/help/syntax/">http://quixapp.com/help/syntax/</a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">在浏览器中更方便的使用 Quix</h2><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">常用方法</h3><p>官方的页面也有相关浏览器整合的信息。<br /> 不过作为一个小书签，常见的无非就是下面几种方式。</p><p>1.<strong>设置书签昵称</strong>，通过地址栏执行。</p><p>2.<strong>通过快捷键执行</strong>。<br /> <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 直接改快捷键，格式为，Goto page,"Bookmarklet 的内容"。<br /> Friefox 需要 SiteLauncher 或是 KeyConfig。<br /> Chrome需要 Shortcut Manager。<br /> Safari 参照书签栏顺序有相应的快捷键。<br /> IE，一边凉快去，不过壳子们应该可以做到。</p><p>3.<strong>通过手势执行</strong>，基本同快捷键。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">把 Quixapp 输入框整合到浏览器</h3><p>无论是前面那一种方法，都是执行 Bookmarklet之后，在弹出的窗口=输入命令，再回车的。<br /> 下面我提供一种简单的方法来说缩短使用流程，仅适用于 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 。</p><p>Opera 提供多种工具栏元素，常用的当然是按钮（Button）了。<br /> 这回换一种方式，我们<strong>把它写成一个输入框，直接在那上面输入 Quix 指令并回车即可</strong>。</p><p>如图，我把它放到开始栏上，基本不占地方。</p><p style="text-align: center;"><a href="http://img.a-shun.com/web/web_quix_03.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/web/web_quix_03.jpg" alt="Quixapp整合到opera" width="490" height="63" /></a></p><p>按钮：<a rel="external nofollow" href="opera:/Edit/Delay,1,,%22Quixapp%22&amp;Select%20all&amp;Cut&amp;Delay,1&amp;Go%20to%20page,%22javascript:Quix();function%20Quix(){var%20e=encodeURIComponent;var%20t=window.getSelection%3Fwindow.getSelection():(document.getSelection%3Fdocument.getSelection():(document.selection%3Fdocument.selection.createRange().text:''));var%20c=window.prompt('Quix:%20Type%20`help`%20for%20a%20list%20of%20commands:');if(t!=''){if(c){c+='%20'+t;}else{c=''+t;}}if(c){var%20u='http://quixapp.com/go/%3Fc='+e(c)+'&amp;t='+(document.title%3Fe(document.title):'')+'&amp;s='+'&amp;v=080'+'&amp;u='+(document.location%3Fe(document.location):'');d=''+document.location;if(d.substr(0,4)!='http'){window.location=u+'&amp;mode=direct';}else{heads=document.getElementsByTagName('head');if(c.substring(0,1)=='%20'){var%20w=window.open(u+'&amp;mode=direct');w.focus();}else%20if(heads.length==0){window.location=u+'&amp;mode=direct';}else{q=document.getElementById('quix');if(q){q.parentNode.removeChild(q);}sc=document.createElement('script');sc.src=u;sc.id='quix';sc.type='text/javascript';void(heads[0].appendChild(sc));}}}}%22,1&amp;%20Delay,1&amp;Paste&amp;Ok"><img src="http://www.a-shun.com/img/ico/button.png" alt="opera按钮" />Quixapp</a><br /> 点击或拖拽到工具栏即可。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">扩展阅读</h2><ul><li><a href="http://quixapp.com/help/">Quix 官方帮助页面</a></li><li><a href="http://lucifr.com/project/quix/">Quix 使用手册 [ 1.0 ] by lucifr</a></li></ul><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="把强力小书签 Quix 整合到浏览器" href="http://www.a-shun.com/archives/21373.html"> 《把强力小书签 Quix 整合到浏览器》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="把强力小书签 Quix 整合到浏览器" href="http://www.a-shun.com/archives/21373.html">http://www.a-shun.com/archives/21373.html</a></p><p style='border-top:3px solid #CCC;'>© <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span> for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21373.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21373.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/bookmarklet" rel="tag">Bookmarklet</a>, <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a> 的文章</h3><ul><li>2010年03月24日  -- <a href="http://www.a-shun.com/archives/21345.html" title="懒人必备：Opera自动填表的简单实现">懒人必备：Opera自动填表的简单实现</a> (143)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月30日  -- <a href="http://www.a-shun.com/archives/21370.html" title="获取 SkyDrive 真实外链地址的新方法">获取 SkyDrive 真实外链地址的新方法</a> (72)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年05月19日  -- <a href="http://www.a-shun.com/archives/21360.html" title="Opera 中文 Wiki 上线">Opera 中文 Wiki 上线</a> (78)</li><li>2010年05月13日  -- <a href="http://www.a-shun.com/archives/21358.html" title="Dropbox 被墙之后及同类服务推荐">Dropbox 被墙之后及同类服务推荐</a> (131)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21373.html/feed</wfw:commentRss> <slash:comments>58</slash:comments> </item> <item><title>Opera 各种安装包的区别和便携化</title><link>http://www.a-shun.com/archives/21371.html</link> <comments>http://www.a-shun.com/archives/21371.html#comments</comments> <pubDate>Fri, 02 Jul 2010 13:54:36 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[软件心得]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[便携软件]]></category> <category><![CDATA[教程]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21371</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>便携软件的设置不受路径迁移影响，可以随身携带便于备份。A.shun 作为便携控，使用的主要软件大多可以实现这一特质。</p><p>个人认为 <strong><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 的便携化</strong>方案算是比较好的，<strong>安装</strong>之后改下配置文件即可，不需要依靠快捷方式（毕竟真正便携的时候带着快捷方式每次修改也麻烦）。</p><p>在 2009年09月26日的曾经写过一篇《<a href="http://www.a-shun.com/archives/21284.html">Opera的便携化</a>》，但由于当时对 op 的认识水平和排版习惯限制，现在看来有点惨不忍睹。而且新版本略有不同，决定趁着 <strong><a href="http://bbs.operachina.com/viewtopic.php?t=81088"><span style="color: #ff0000;">Opera 10.60正式版发布</span></a></strong>之际来炒下冷饭，重新整理。</p><p>新手必看，看完之后更无需去下载所谓的 <strong>Opera 绿色版</strong>和便携版，自己动手丰衣足食。</p><p>那么就从安装来谈起，受限于我自身使用的系统，只讨论 Windows 版本。不正确或完善之处请指正和补充。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21371.html">Opera 各种安装包的区别和便携化</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>便携软件的设置不受路径迁移影响，可以随身携带便于备份。A.shun 作为便携控，使用的主要软件大多可以实现这一特质。</p><p>个人认为 <strong><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 的便携化</strong>方案算是比较好的，<strong>安装</strong>之后改下配置文件即可，不需要依靠快捷方式（毕竟真正便携的时候带着快捷方式每次修改也麻烦）。</p><p>在 2009年09月26日的曾经写过一篇《<a href="http://www.a-shun.com/archives/21284.html">Opera的便携化</a>》，但由于当时对 op 的认识水平和排版习惯限制，现在看来有点惨不忍睹。而且新版本略有不同，决定趁着 <strong><a href="http://bbs.operachina.com/viewtopic.php?t=81088"><span style="color: #ff0000;">Opera 10.60正式版发布</span></a></strong>之际来炒下冷饭，重新整理。</p><p>新手必看，看完之后更无需去下载所谓的 <strong>Opera 绿色版</strong>和便携版，自己动手丰衣足食。</p><p>那么就从安装来谈起，受限于我自身使用的系统，只讨论 Windows 版本。不正确或完善之处请指正和补充。<br /> <span id="more-21371"></span></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">1. 安装 Opera</h2><p>Opera For Widows 提供两种不同的安装包：<strong>Classic 安装包</strong>及 <strong>MSI 安装包</strong>。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">1.1 MSI 安装包</h3><p><span style="color: #ff6600;">MSI 安装包需要 Windows Installer 服务支持</span>，适用于 WinXp、Vista、Win7 等高版本的 Windows 系统。<br /> 其好处在于可以使用 Windows Installer 服务来进行管理，<span style="color: #008000;">方便升级安装</span>。<br /> 在 opera.com和operachina.com 上默认下载的是 MSI 安装包。</p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/por/op_installation_03.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/por/op_installation_03.jpg" alt="安装Opera" width="400" height="302" /></a></p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">1.2 Classic 安装包</h3><p>Classic 安装包支持 Win95/98 及以上的系统，不需要额外服务支持。但<span style="color: #ff9900;">只有英文语言包</span>。</p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/por/op_installation_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/por/op_installation_01.jpg" alt="Opera Classic" width="370" height="306" /></a></p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">1.3 自定义安装目录</h3><p><span style="color: #ff0000;">无论是哪种格式的安装包，都是可以自定义安装目录的</span>，这是对用户基本的尊重。<br /> 进入下一步之前，先点选项。</p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/por/op_installation_04.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/por/op_installation_04.jpg" alt="Opera 自定义安装目录" width="400" height="302" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">2. Opera 中国版和国际版</h2><p>这个和本文的主要内容关系不大，只是借此扫盲下。</p><p><strong>Opera 中国版</strong>，代号为<span style="color: #ff0000;"> 朱雀</span>（<span style="color: #ff0000;">IBIS</span>），是为了适应本地用户和网络环境所作出改动而来的。<br /> Opera 中国版并没有像某些软件的中国版一样砍掉部分功能，也没有添加一些臃肿的东西。其本质和国际版是相同的，<span style="color: #008000;">只是改变了一些默认设置</span>，这些你都可以自定义。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">2.1 中国版和国际版的主要区别</h3><ul><blockquote><li>默认搜索引擎为百度 -.-</li><li>默认启用了一些中国特色的习惯，如<strong>双击关闭标签</strong>、<strong>超级拖拽</strong>(拖拽链接在新标签打开，<a href="http://www.a-shun.com/archives/21298.html" target="_blank">后台标签打开链接需设置</a>)</li><li>首选项对话框中增加了下载工具选择</li><li>M2 增加了国内邮件的支持</li><li>修复了一些中文网站的兼容性问题等</li></blockquote></ul><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">2.2 如何判断是中国版还是国际版</h3><p>由于 10.0以后的 ibis 没有使用朱雀皮，那么我们只能通过该以下几个地方来辨认。</p><ol><blockquote><li>中国版的 ua 串中多了 <span style="color: #ff0000;">Edition IBIS</span>，可以查看<a rel="external nofollow" href="opera:about"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig&quot;" />opera:about</a></li><li>中国版的 Final 安装包通常名称为 Opera installer_ibis，而国际版为 Opera_版本_int_Setup</li><li>中国版只带了中文和英文语言包</li><li>Opera 中国版仅提供了 MSI 安装包</li></blockquote></ol><p>在 <a href="http://www.operachina.com/browser/">operachina.com</a> 下载到的是 ibis。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">3. 多用户和单用户模式</h2><p><strong>多用户模式</strong>的配置文件保存在用户系统用户文件夹中，以 WinXp 为例：<br /> Opera 10及以上版本是在：<span style="color: #ff6600;">C:\Documents and Settings\用户名\Application Data\Opera\opera安装目录名\</span>；<br /> 9.64 及以下版本则是<span style="color: #ff6600;">C:\Documents and Settings\用户名\Application Data\Opera\opera安装目录名\profile\</span><br /> 而<strong>单用户模式</strong>的 profile 文件夹保存在 Opera 安装目录下。</p><p>在 <a rel="external nofollow" href="opera:about"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig&quot;" />opera:about</a> 中可以查看当前配置的路径。</p><p>无论哪种安装包的默认安装都是使用多用户模式。<br /> 但 Classic 安装包比较方便，在安装时勾选 <span style="color: #ff6600;">Use the same profile for all user on this computer</span> 即可。</p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/por/op_installation_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/por/op_installation_02.jpg" alt="Opera 单用户模式" width="370" height="306" /></a></p><p>MSI 版本或者 C 版忘记勾选上面选项的，也没关系。<br /> 安装好之后，在 Opera 的安装目录下，找到 <strong>operaprefs_default.ini</strong>，用文本编辑器打开。<br /> 把</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Multi User=1</pre><p>修改为</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Multi User=0</pre><p>保存，然后运行 Opera 就会在自身目录中生产一个 profile，并将自定义设置保存在其中，以后也无需再修改，升级不会被覆盖。</p><p>如果你改成单用户模式之前有修改过设置，可以先设置移到 op 的目录下的 <strong>profile 目录</strong>下。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">4. Opera 的环境变量</h2><p>改成单用户模式之后，Opera 就不会向自身以外的文件夹写入文件了（下载路径除外）。<br /> 但由于默认使用的是绝对路径，如果再移动位置的话，一些自定义的配置文件的路径就错了。</p><p>自 Opera 10.0开始加入的<strong>路径变量</strong>，使 Opera 基本上可以抛弃第三方绿化工具而实现便携移动。</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">{Resources} = Opera 安装目录
{LargePrefs} = 默认 profile 目录</pre><p>使用方法，如：</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Fast Forward Configuration={LargePrefs}fastforward.ini
Cache Directory4={Resources}cache</pre><p>另外还有一个 <span style="color: #008000;">{SmallPreferences}</span> ，作用同 {LargePrefs}。<br /> Opera 目录变量只可以用在 operaprefs_default.ini 和 operaprefs.ini 、override.ini 中。<br /> 对自定义文件夹是无效的：如 UserJS 目录，或者其他外部程序的目录。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">5. 在 Opera 中使用相对路径</h2><p>对于自定义文件和目录等无法使用路径变量的，我们可以用相对路径来完全实现 Opera 的<strong>便携化</strong>。<br /> 如：</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">User JavaScript File=profile\script
Execute program,"tools\proxy\fg.exe"</pre><p>绝对路径可以用于 Opera 的各种配置文件中。<br /> 但是如果是从其他外部程序运行 Opera的话，如，点击聊天工具中的链接打开 Opera（Opera 之前先运行则不受影响），则相对路径失效。<br /> 这个其实也不是 o 的问题，而应该说是相对路径的通病。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">6. 第三方绿化工具</h2><p>有了路径变量，基本上就不需要依靠外部绿化器来自动替换 ini 文件中的路径，<strong>绿化 Opera</strong>了。</p><p>但是由于吐槽的 UserJs 目录和外部工具目录无法使用目录变量，还是有些朋友习惯用外部工具的。<br /> 再说，这些外部绿化工具也给 Opera 添加了一些额外的小功能。</p><p>常见的有：<br /> <span style="color: #ff0000;">Somh</span> 的 <a href="http://bbs.operachina.com/viewtopic.php?f=54&amp;t=1582"><strong>Opera Pathfinder</strong></a>，极速版自带。<br /> <span style="color: #008000;">Ezibo</span> 的 <a href="http://bbs.operachina.com/viewtopic.php?f=54&amp;t=33506"><strong>GreenPath</strong></a>，白菜版自带。<br /> <span style="color: #ff6600;">opera_888</span> 的 <a href="http://bbs.operachina.com/viewtopic.php?f=15&amp;t=12064"><strong>Ostart</strong></a>，九天版自带。<br /> <span style="color: #0000ff;">Lex1</span> 的 <a href="http://ruzanow.ru"><strong>Opera Loader</strong></a>。</p><p>由于 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span> 使用的是 环境变量加相对路径的方式，也限于篇幅问题，不在此做详细介绍，自己查看链接吧。<br /> 同类工具也还有，如需要请自行搜索。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">7. 参考资料</h2><ul><blockquote><li><a href="http://bbs.operachina.com/viewtopic.php?f=30&amp;t=40071">Opera 桌面版 常见问题汇总</a></li><li><a href="http://wiki.operachina.com/安装">http://wiki.operachina.com/安装</a></li></blockquote></ul><p>你可以在此处下载到最新正式版的 Opera：<a href="http://www.opera.com/browser/download/">http://www.opera.com/browser/download/</a></p><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="Opera 各种安装包的区别和便携化" href="http://www.a-shun.com/archives/21371.html"> 《Opera 各种安装包的区别和便携化》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="Opera 各种安装包的区别和便携化" href="http://www.a-shun.com/archives/21371.html">http://www.a-shun.com/archives/21371.html</a></p><p style='border-top:3px solid #CCC;'>© A.shun for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21371.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21371.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/portable" rel="tag">便携软件</a>, <a href="http://www.a-shun.com/archives/tag/tutorial" rel="tag">教程</a> 的文章</h3><ul><li>2009年09月26日  -- <a href="http://www.a-shun.com/archives/21284.html" title="Opera教程:Opera的便携化">Opera教程:Opera的便携化</a> (114)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年05月19日  -- <a href="http://www.a-shun.com/archives/21360.html" title="Opera 中文 Wiki 上线">Opera 中文 Wiki 上线</a> (78)</li><li>2010年05月9日  -- <a href="http://www.a-shun.com/archives/21357.html" title="Flash Block For Opera/Firefox/Chrome">Flash Block For Opera/Firefox/Chrome</a> (91)</li><li>2010年04月13日  -- <a href="http://www.a-shun.com/archives/21352.html" title="支持多种上传方式可外链的相册推荐">支持多种上传方式可外链的相册推荐</a> (86)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21371.html/feed</wfw:commentRss> <slash:comments>56</slash:comments> </item> <item><title>更加方便的 Opera 代理按钮和菜单</title><link>http://www.a-shun.com/archives/21366.html</link> <comments>http://www.a-shun.com/archives/21366.html#comments</comments> <pubDate>Sat, 19 Jun 2010 13:21:55 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[软件心得]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[Proxy]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21366</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>A.shun 这回对之前写过的 <a href="http://www.a-shun.com/archives/21337.html" target="_blank">Opera 代理菜单和按钮</a>进行较大的改进。<br /> 大大提高了实用性：占用地方小，不需要打开菜单就能显示当前代理端口，抛弃 Set preference 切换方式等。<br /> 这也是我写过的最长的按钮。。。代理设置作为条目较多的一项，用来练习按钮和菜单语法正好。</p><p>本文仅提供配置文件的修改方法，目的是为了探讨 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 按钮和菜单的技巧。<span style="color: #ff0000;">仅供学习交流之用，不提供任何相关工具和网址。</span></p><p>这是对此功能的第二次改进了，建议<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>以获取后续更新内容。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21366.html">更加方便的 Opera 代理按钮和菜单</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>A.shun 这回对之前写过的 <a href="http://www.a-shun.com/archives/21337.html" target="_blank">Opera 代理菜单和按钮</a>进行较大的改进。<br /> 大大提高了实用性：占用地方小，不需要打开菜单就能显示当前代理端口，抛弃 Set preference 切换方式等。<br /> 这也是我写过的最长的按钮。。。代理设置作为条目较多的一项，用来练习按钮和菜单语法正好。</p><p>本文仅提供配置文件的修改方法，目的是为了探讨 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 按钮和菜单的技巧。<span style="color: #ff0000;">仅供学习交流之用，不提供任何相关工具和网址。</span></p><p>这是对此功能的第二次改进了，建议<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>以获取后续更新内容。<br /> <span id="more-21366"></span></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">预览和示意图</h2><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/Opera_button_menu.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/Opera_button_menu.jpg" alt="Opera 代理按钮和菜单" width="450" height="315" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">代理按钮和菜单的主要改进</h2><ol><blockquote><li><span style="color: #ff0000;"><strong>硬生生的把之前的<a href="http://www.a-shun.com/archives/21362.html" target="_self">3个按钮</a>揉成1个</strong></span><br /> 很暴力的说，之前三个按钮的确是说不过去，好吧，我忏悔。这下在释放了工具栏空间的同时，也解决了以前按钮多让新手困惑的问题。</li><li><strong>在启用代理时，为多种常见端口添加了特定的图标</strong><br /> 以提高工具栏按钮风格的协调性。（默认可以显示10种状态，Pac+禁用+启用（7种端口+其他）</li><li><strong>去掉了在线 Pac 文件的条目</strong>。<br /> 由于 Opera10.5x 的一个 bug (无法识别base64编码过的 Pac 文件)，加上appspot.com本身处于半墙状态，<strong>autoproxy2pac</strong>还经常出现 Over Quota。在线 pac 并不实际。老版本的 Opera 可以访问<a href="http://www.a-shun.com/archives/21337.html  " target="_blank">前文获取这个菜单条目</a>。还是自己写 Pac 吧，写得好一个就够了。</li><li><strong>精简了菜单上的条目，条目顺序及其他细节微调</strong>。<br /> 去掉了如不常用的：使用剪贴板代理、关闭所有代理工具，需要的话从前面的文章复制代码加上去吧。也去掉了在线代理条目，因为这类服务很难存活久，而且自己添加并不困难。</li></blockquote></ol><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">获得 Opera 代理按钮+菜单</h2><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">添加 Opera 代理状态显示和开关按钮</h3><p>将下面按钮直接拖到除个人栏外的任何工具栏。如果你要见识下这个按钮的长度就直接点击添加 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> 。</p><blockquote><p><a title="Quick Proxy" rel="external nofollow" href="opera:/button/Disable%20proxy%20servers%2C%20%2C%20%2C%20%22Proxy%20Disable%22%2C%20%22No%20Security%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22proxy%7CUse%20Automatic%20Proxy%20Configuration%3D1%22%2C%20%2C%20%22AutoProxy%22%2C%20%22Extended%20Security%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A9666%22%2C%20%2C%20%22Port%20is%209666%22%2C%20%22u_s%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8580%22%2C%20%2C%20%22Port%20is%208580%22%2C%20%22fg_s%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8000%22%2C%20%2C%20%22Port%20is%208000%22%2C%20%22gap_s%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8118%22%2C%20%2C%20%22Port%20is%208118%22%2C%20%22p_s%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8081%22%2C%20%2C%20%22Port%20is%208081%22%2C%20%22gt_s%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A2010%22%2C%20%2C%20%22Port%20is%202010%22%2C%20%22mrz_s%22%20%3E%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C1%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C1%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A1984%22%2C%20%2C%20%22Port%20is%201984%22%2C%20%22puff_s%22%20%3E%20Enable%20proxy%20servers%2C%20%2C%20%2C%20%22Proxy%20Enabled%22%2C%20%22High%20Security%20Simple%22%20+%20Show%20popup%20menu%2C%20%22Quick%20Proxy%20Menu%22"><img src="http://img.a-shun.com/ico/button.png" alt="opera按钮" />Quick Proxy</a></p></blockquote><p>单击启用/禁用代理，点击旁边的小箭头呼出快速代理菜单，显示多种代理状态（含对应端口）。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">安装 Opera 快速切换代理菜单</h3><p>在你的<a rel="external nofollow" href="opera:config#Menu Configuration" target="_blank"><img src="http://img.a-shun.com/ico/opera.png" alt="operaconfig" />菜单配置文件</a>最后添加以下代码：</p><pre style="width: 95%; max-height: 300px; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">[Quick Proxy Menu]
Item, "开关 » Autoproxy"=New page,,,, "Extended Security" &amp; Go to page, "opera:config"  &amp; Delay, 1 &amp; Go to page, "javascript:(function(){var as=opera.getPreference('Proxy','Use Automatic Proxy Configuration');if(as==0){var as=1}else{var as=0}opera.setPreference('Proxy','Use Automatic Proxy Configuration',as);window.close()})();"
Submenu, "切换 » AutoProxy", Pac Menu="Show popup menu,,,, "Restart transfer""
Item, "[召唤 » Fgate  ]"=Execute program,"fg的路径或快捷方式",,,"fg"
;Item, "[召唤 » FreeU  ]"=Execute program,"fu的路径或快捷方式",,,"fu"
Item, "[召唤 » wujie  ]"=Execute program,"wj的路径或快捷方式",,,"u"
Item, "[召唤 » GApp   ]"=Execute program,"gapp的路径或快捷方式",,,"gap"
Item, "[召唤 » GTunnel]"=Execute program,"gt的路径或快捷方式",,,"gt"
Item, "[召唤 » Puff   ]"=Execute program,"puff的路径或快捷方式",,,"puff"
Item, "[召唤 » Mr.Z   ]"=Execute program,"Mr.zhang的路径或快捷方式",,,"Panel Contacts"
Item, "[召唤 » SSH-D  ]"=Execute program,"myentunnel的路径或快捷方式" ,,,"p" &amp; Execute program,"Privoxy/Polipo的快捷方式或启动脚本"
Item, "[召唤 » Tor    ]"=Execute program,"tor的路径或快捷方式",,,"tor"
BreakItem
Item, "Setting  »  Proxy"=External action,,,,Menu Tools | show preferences &amp; show proxy servers
Item, "Add To Exceptions"=External action,,,,Add widget | edit site preferences &amp; delay, 10 &amp; copy &amp; Cancel &amp; delay,1 &amp; Disable proxy servers &amp; Show preferences &amp; Show proxy servers &amp; Delay, 10 &amp; Check item &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Check item &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Check item &amp; Focus next widget &amp; Go to end &amp; Insert, "," &amp; Paste &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "---Fuck » GFW---"=Show popup menu
Item, "[ Fg/fu ]  » 8580"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; ok &amp; delay,10 &amp; cancel
Item, "[ Wujie ]  » 9666"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"9666" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"9666" &amp; ok &amp; delay,10 &amp; cancel
Item, "[ GApp  ]  » 8000"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8000"  &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8000"  &amp; ok &amp; delay,10 &amp; cancel
Item, "[GTunnel]  » 8081"="External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8081" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8081" &amp; ok &amp; delay,10 &amp; cancel"
Item, "[ Puff  ]  » 1984"="External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"1984" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"1984" &amp; ok &amp; delay,10 &amp; cancel"
Item, "[ Mr.Z  ]  » 1984"="External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"2010" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"2010" &amp; ok &amp; delay,10 &amp; cancel"
Item, "[Tor/SSH]  » 8118"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; ok &amp; delay,10 &amp; cance
[Pac Menu]
Item, "[9666 » Wujie ]"=disable proxy servers,,,,"u" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac1路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8580 » Fg/Fu ]"=disable proxy servers ,,,,"fg" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac1路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8000 »  Gapp ]"=disable proxy servers ,,,,"gap" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac1路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[1984 »  Puff ]"=disable proxy servers ,,,,"puff" &amp;Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac1路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8081 »GTunnel]"=disable proxy servers ,,,,"gt" &amp; Show preferences &amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac1路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8118 »SSH/Tor]"=disable proxy servers ,,,,"p" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac1路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel</pre><p>不懂编辑配置文件的，请访问：<a href="http://wiki.operachina.com/" target="_blank">Opera 中文 wiki</a>。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">修改 Opera 皮肤，添加图标</h3><p>下载这个<a href="http://shun.googlecode.com/files/ops_Quick_proxy_icon.7z" target="_blank">图标包</a>（13.6kb），把解压后的 proxy 文件夹放到你<a href="opera:config#UserPrefs|ButtonSet" target="_blank"><img src="http://img.a-shun.com/ico/opera.png" alt="operaconfig" />当前使用的皮肤</a>里面。<br /> 并编辑 skin.ini，在最后面添加：</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">;Quick Proxy by A.shun
u=proxy/u.png
fg=proxy/fg.png
tor=proxy/tor.png
puff=proxy/puff.png
gt=proxy/gt.png
gap=proxy/gap.png
fu=proxy/fu.png
p=proxy/p.png
mrz=proxy/mrz.png
u_s=proxy/u_s.png
fg_s=proxy/fg_s.png
puff_s=proxy/puff_s.png
gt_s=proxy/gt_s.png
gap_s=proxy/gap_s.png
p_s=proxy/p_s.png
mrz_s=proxy/mrz_s.png</pre><p>当然，如果你经常换皮肤，那么建议你修改 opera/skin 里的 standard_skin.zip。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 5px; padding-bottom: 3px;">注意事项</h2><ul><blockquote><li>根据你计算机的实际情况，<span style="color: #008000;">修改代码中所有的“xxx的路径或快捷方式”</span>。如果需要“<a href="http://www.a-shun.com/archives/21335.html" target="_blank">运行工具并启用相应的代理设置</a>”的，请点击链接查看，并自行修改。</li><li>修改菜单时，要注意保存为 <span style="color: #ff0000;">UTF-8格式</span>，否则会乱码。在保存 menu 、skin 之前，要先关闭 Opera。</li><li>如果提示“<span style="color: #ff0000;">此扩展名未注册应用程序</span>”，那么请检查外部程序路径。</li><li>菜单条目比较多，这是为了照顾更多人的习惯，也是为了看起来更加壮观。实际上当然不用这么多。<span style="color: #008000;">不需要的条目注释掉（在前面加分号）或者删掉该行即可。</span>因此谢绝“太多了、花哨”之类评价。</li></blockquote></ul><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="更加方便的 Opera 代理按钮和菜单" href="http://www.a-shun.com/archives/21366.html"> 《更加方便的 Opera 代理按钮和菜单》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="更加方便的 Opera 代理按钮和菜单" href="http://www.a-shun.com/archives/21366.html">http://www.a-shun.com/archives/21366.html</a></p><p style='border-top:3px solid #CCC;'>© <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span> for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21366.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21366.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请订阅备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/proxy" rel="tag">Proxy</a> 的文章</h3><ul><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年02月7日  -- <a href="http://www.a-shun.com/archives/21337.html" title="轻松用代理：打造豪华Opera代理菜单">轻松用代理：打造豪华Opera代理菜单</a> (134)</li><li>2010年01月29日  -- <a href="http://www.a-shun.com/archives/21335.html" title="轻松用代理：Opera代理设置 进阶篇">轻松用代理：Opera代理设置 进阶篇</a> (103)</li><li>2010年01月25日  -- <a href="http://www.a-shun.com/archives/21334.html" title="轻松用代理：Opera代理设置 基础篇">轻松用代理：Opera代理设置 基础篇</a> (114)</li><li>2009年12月2日  -- <a href="http://www.a-shun.com/archives/21316.html" title="方便的客户端：Opera Twitter widget新版">方便的客户端：Opera Twitter widget新版</a> (150)</li><li>2009年10月19日  -- <a href="http://www.a-shun.com/archives/21296.html" title="轻松更新Twitter：Twitter Opera widget">轻松更新Twitter：Twitter Opera widget</a> (121)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21366.html/feed</wfw:commentRss> <slash:comments>82</slash:comments> </item> <item><title>更新 Opera 代理切换菜单和按钮</title><link>http://www.a-shun.com/archives/21362.html</link> <comments>http://www.a-shun.com/archives/21362.html#comments</comments> <pubDate>Sat, 29 May 2010 10:24:34 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[软件心得]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[Proxy]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21362</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>杯具的上午，网络连不上，害我看不成比赛。直到3点多才恢复。</p><p>没事就折腾，把以前整过的 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 代理快速切换菜单 更新一下，解决几个小问题。<br /> 也可以准备迎接<span style="color: #ff0000;">5月35号</span>了，用到的机会更多。</p><p>本文纯粹是折腾回顾，<span style="color: #ff0000;">不提供任何相关工具和网址</span>，评论的同学们也请注意别出现关键词。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21362.html">更新 Opera 代理切换菜单和按钮</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>杯具的上午，网络连不上，害我看不成比赛。直到3点多才恢复。</p><p>没事就折腾，把以前整过的 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 代理快速切换菜单 更新一下，解决几个小问题。<br /> 也可以准备迎接<span style="color: #ff0000;">5月35号</span>了，用到的机会更多。</p><p>本文纯粹是折腾回顾，<span style="color: #ff0000;">不提供任何相关工具和网址</span>，评论的同学们也请注意别出现关键词。<br /> <span id="more-21362"></span></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">更新内容</h2><ul><blockquote><li>重写了 Pac 启用和禁用状态切换按钮的代码，现在打开标签较多的时候启用 Pac 不会再有停顿。</li><li>修正了 Add To Exceptions （添加到例外）条目在 10.5x下会转到 null 页面的问题。</li><li>简化了菜单，GTunnel 和 Puff 的条目默认不显示，启用/禁用 Pac的条目也不再需要了。</li><li>添加 Mr.zhang 相关的条目，默认不显示。</li><li>Pac 切换菜单中添加本地 Pac文件的条目，需要修改路径。</li><li>添加了一个在线代理，有备无患。</li></blockquote></ul><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">添加代理状态切换按钮</h2><p><span style="color: #ff6600;">只有第二个有更新。</span></p><ul><blockquote><li><a title="Quick Proxy" rel="external nofollow" href="opera:/button/Disable%20proxy%20servers%2C%20%2C%20%2C%20%22Proxy%20Disable%22%2C%20%22Transfer%20Loading%22%20%3E%20Enable%20proxy%20servers%2C%20%2C%20%2C%20%22Proxy%20Enable%22%2C%20%22Link%20Busy%22%20%26%20Show%20preferences%20%26%20Show%20proxy%20servers%20%26%20Focus%20previous%20widget%20%26%20Focus%20previous%20widget%20%26%20Focus%20previous%20widget%20%26%20Focus%20previous%20widget%20%26%20Focus%20previous%20widget%20%26%20Uncheck%20item%20%26%20Ok%20%26%20Delay%2C%2010%20%26%20Cancel%20+%20Show%20popup%20menu%2C%20%22Quick%20Proxy%20Menu%22"><img src="http://img.a-shun.com/ico/button.png" alt="opera按钮" />Quick Proxy</a></li><li><a title="Autoproxy" rel="external nofollow" href="opera:/button/New%20page%2C%20%2C%20%2C%20%22Pac%20Disable%22%2C%20%22Transfer%20Stopped%22%20%26%20Go%20to%20page%2C%20%22opera%3Aconfig%22%20%26%20Delay%2C%201%20%26%20Go%20to%20page%2C%20%22javascript%3A%28function%28%29%7Bvar%20oh%3Dopera.getPreference%28%27Proxy%27%2C%27Use%20Automatic%20Proxy%20Configuration%27%29%2Cyeah%3D%28oh%3D%3D1%29%3F0%3A1%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20Automatic%20Proxy%20Configuration%27%2Cyeah%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTP%27%2C0%29%3Bopera.setPreference%28%27Proxy%27%2C%27Use%20HTTPS%27%2C0%29%3Bwindow.close%28%29%7D%29%28%29%3B%22%20%3E%20Set%20preference%2C%20%22proxy%7CUse%20Automatic%20Proxy%20Configuration%3D1%22%2C%20%2C%20%22Pac%20Enabled%22%2C%20%22Expand%20Enabled%22"><img src="http://img.a-shun.com/ico/button.png" alt="opera按钮" />Autoproxy</a></li><li><a title="Proxy Port" rel="external nofollow" href="opera:/button/External%20action%2C%20%2C%20%2C%20%22Port%20is%20other%22%2C%20%22Trust%20Unknown%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A9666%22%2C%20%2C%20%22Port%20is%209666%22%2C%20%22u%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8580%22%2C%20%2C%20%22Port%20is%208580%22%2C%20%22fg%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8000%22%2C%20%2C%20%22Port%20is%208000%22%2C%20%22gap%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8118%22%2C%20%2C%20%22Port%20is%208118%22%2C%20%22p%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A8081%22%2C%20%2C%20%22Port%20is%208081%22%2C%20%22gt%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22%20%3E%20Set%20preference%2C%20%22Proxy%7CHTTP%20server%3D127.0.0.1%3A1984%22%2C%20%2C%20%22Port%20is%201984%22%2C%20%22puff%22%20%3E%20Show%20hidden%20popup%20menu%2C%20%22Quick%20Proxy%20Patch%22"><img src="http://img.a-shun.com/ico/button.png" alt="opera按钮" />Proxy Port</a></li></blockquote></ul><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">安装 <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 代理快速切换菜单</h2><p>在你的<a rel="external nofollow" href="opera:config#Menu Configuration" target="_blank"><img src="http://img.a-shun.com/ico/opera.png" alt="operaconfig" />菜单配置文件</a>最后添加以下代码：</p><pre style="width: 95%; max-height: 300px; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">[Quick Proxy Menu]
Item, "Setting  »  Proxy"=External action,,,,Menu Tools | show preferences &amp; show proxy servers
Item, "Add To Exceptions"=External action,,,,Add widget | edit site preferences &amp; delay, 10 &amp; copy &amp; Cancel &amp; delay,1 &amp; Disable proxy servers &amp; Show preferences &amp; Show proxy servers &amp; Delay, 10 &amp; Check item &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Check item &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Focus next widget &amp; Check item &amp; Focus next widget &amp; Go to end &amp; Insert, "," &amp; Paste &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "Close » All Proxy"=execute program,"cmd.exe","/c taskkill /im opt* /f /t",,"Stop" &amp; Disable proxy servers
Item, "---Fuck » GFW---"=Show popup menu
Item, "[召唤 » Fgate  ]"=Execute program,"fg的路径或快捷方式",,,"fg"
Item, "[召唤 » FreeU  ]"=Execute program,"fu的路径或快捷方式",,,"fu"
Item, "[召唤 » wujie  ]"=Execute program,"wj的路径或快捷方式",,,"u"
Item, "[召唤 » GApp   ]"=Execute program,"gapp的路径或快捷方式",,,"gap"
;Item, "[召唤 » GTunnel]"=Execute program,"gt的路径或快捷方式",,,"gt"
;Item, "[召唤 » Puff   ]"=Execute program,"puff的路径或快捷方式",,,"puff"
;Item, "[召唤 » Mr.Z   ]"=Execute program,"Mr.zhang的路径或快捷方式",,,"Panel Contacts"
Item, "[召唤 » SSH-D  ]"=Execute program,"myentunnel的路径或快捷方式" ,,,"p" &amp; Execute program,"Privoxy/Polipo的快捷方式或启动脚本"
Item, "[召唤 » Tor    ]"=Execute program,"tor的路径或快捷方式",,,"tor"
BreakItem
Item, "Open in WebProxy 1"="Go to page, "https://imi.appspot.com/goto?url=%u",,,"Forward mail""
Item, "Open in WebProxy 2"="Go to page, "http://tor-proxy.net/proxy/express/browse.php?u=%u",,,"Forward mail""
Item, "Use » LocalPac"=disable proxy servers ,,,,"Lock panel" &amp; Show preferences &amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"本地pac路径，绝对或相对均可" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Submenu, "Use » OnlinePac", Pac Menu="Show popup menu,,,, "Restart transfer""
Item, "--Switch » Port--"=Show popup menu
Item, "[ Fg/fu ]  » 8580"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; ok &amp; delay,10 &amp; cancel
Item, "[ Wujie ]  » 9666"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"9666" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"9666" &amp; ok &amp; delay,10 &amp; cancel
Item, "[ GApp  ]  » 8000"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8000"  &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8000"  &amp; ok &amp; delay,10 &amp; cancel
;Item, "[GTunnel]  » 8081"="External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8081" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8081" &amp; ok &amp; delay,10 &amp; cancel"
;Item, "[ Puff  ]  » 1984"="External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"1984" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"1984" &amp; ok &amp; delay,10 &amp; cancel"
;Item, "[ Mr.Z  ]  » 1984"="External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"2010" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"2010" &amp; ok &amp; delay,10 &amp; cancel"
Item, "[Tor/SSH]  » 8118"=External action,,,,Panel Collapse Right | disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; ok &amp; delay,10 &amp; cancel
Item, "Clipboard IP Port"=External action,,,,Mail Attachment | go to page, "opera:config#proxy|httpserver" &amp; delay, 1000 &amp; select all &amp; paste &amp; focus next widget &amp; focus next widget &amp; paste &amp; focus address field &amp; insert, "opera:config#proxy" &amp; go &amp; focus previous widget &amp; focus previous widget &amp; click button &amp; delay, 10 &amp; ok &amp; delay,1 &amp;close page

[Pac Menu]
Item, "[9666 »  Wujie ]"=disable proxy servers,,,,"u" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"http://autoproxy2pac.appspot.com/pac/wu-jie" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8580 »  Fg/Fu ]"=disable proxy servers ,,,,"fg" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"http://autoproxy2pac.appspot.com/pac/free-gate" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8000 »   Gapp ]"=disable proxy servers ,,,,"gap" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"http://autoproxy2pac.appspot.com/pac/gappproxy" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
;Item, "[1984 »   Puff ]"=disable proxy servers ,,,,"puff" &amp;Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"http://autoproxy2pac.appspot.com/pac/puff" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
;Item, "[8081 » GTunnel]"=disable proxy servers ,,,,"gt" &amp; Show preferences &amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"http://autoproxy2pac.appspot.com/pac/proxy/127.0.0.1/8081" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel
Item, "[8118 » SSH/Tor]"=disable proxy servers ,,,,"p" &amp; Show preferences&amp; Show proxy servers &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Focus previous widget &amp; Check item &amp; Focus next widget &amp; Insert,"http://autoproxy2pac.appspot.com/pac/privoxy" &amp; focus next widget &amp; Ok &amp; Delay, 10 &amp; Cancel

[Quick Proxy Patch]
Item, "[切换到9666 并召唤 wujie]"=External action,,,,"u" | Execute program,"wj的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"9666" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"9666" &amp; ok &amp; delay,10 &amp; cancel
Item, "[切换到8580 并召唤 Fgate]"=External action,,,,"fg" | Execute program,"fg的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; ok &amp; delay,10 &amp; cancel
Item, "[切换到8580 并召唤 FreeU]"=External action,,,,"fu" | Execute program,"fu的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show prox servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8580" &amp; ok &amp; delay,10 &amp; cancel
Item, "[切换到8000 并召唤  GApp]"=External action,,,,"gap" | Execute program,"Gapp的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8000"  &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8000"  &amp; ok &amp; delay,10 &amp; cancel
;Item, "[切换到1984 并召唤  Puff]"=External action,,,,"puff" | Execute program,"puff的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"1984" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"1984" &amp; ok &amp; delay,10 &amp; cancel
Item, "[切换到8118 并召唤 SSH-D]"=External action,,,,"p" | Execute program,"myentunnel的路径或快捷方式" &amp; delay,20 &amp; Execute program,"Privoxy/Polipo的快捷方式或召唤脚本" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; ok &amp; delay,10 &amp; cancel
Item, "[切换到8118 并召唤   Tor]"=External action,,,,"tor" | Execute program,"Tor的路径或快捷方式" &amp; delay,20 &amp; Execute program,"Privoxy/Polipo的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8118" &amp; ok &amp; delay,10 &amp; cancel
;Item, "[切换到8081并召唤GTunnel]"=External action,,,,"gt" | Execute program,"Gtunnel的路径或快捷方式" &amp; delay,20 &amp; disable proxy servers &amp; show preferences &amp; show proxy servers &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8081" &amp; focus next widget &amp; check item &amp; focus next widget &amp; insert,"127.0.0.1" &amp; focus next widget &amp; insert,"8081" &amp; ok &amp; delay,10 &amp; cancel</pre><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">代理菜单使用说明</h2><ul><blockquote><li>图标添加和详细说明请查看：《<a href="http://www.a-shun.com/archives/21337.html" target="_blank">轻松用代理：打造豪华Opera代理菜单</a>》</li><li>修改菜单时，要注意保存为<span style="color: #ff0000;">UTF-8无BOM格式</span>，否则会乱码。</li><li>注意在保存menu 、skin之前，要先关闭Opera。</li><li>如果提示“<span style="color: #ff0000;">此扩展名未注册应用程序</span>”，那么请检查外部程序路径。</li></blockquote></ul><p>后续更新：<br /> 2010年06月19日：<a href="http://www.a-shun.com/archives/21366.html">更加方便的 Opera 代理按钮和菜单</a></p><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="更新 Opera 代理切换菜单和按钮" href="http://www.a-shun.com/archives/21362.html"> 《更新 Opera 代理切换菜单和按钮》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="更新 Opera 代理切换菜单和按钮" href="http://www.a-shun.com/archives/21362.html">http://www.a-shun.com/archives/21362.html</a></p><p style='border-top:3px solid #CCC;'>© <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span> for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21362.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21362.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/proxy" rel="tag">Proxy</a> 的文章</h3><ul><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年02月7日  -- <a href="http://www.a-shun.com/archives/21337.html" title="轻松用代理：打造豪华Opera代理菜单">轻松用代理：打造豪华Opera代理菜单</a> (134)</li><li>2010年01月29日  -- <a href="http://www.a-shun.com/archives/21335.html" title="轻松用代理：Opera代理设置 进阶篇">轻松用代理：Opera代理设置 进阶篇</a> (103)</li><li>2010年01月25日  -- <a href="http://www.a-shun.com/archives/21334.html" title="轻松用代理：Opera代理设置 基础篇">轻松用代理：Opera代理设置 基础篇</a> (114)</li><li>2009年12月2日  -- <a href="http://www.a-shun.com/archives/21316.html" title="方便的客户端：Opera Twitter widget新版">方便的客户端：Opera Twitter widget新版</a> (150)</li><li>2009年10月19日  -- <a href="http://www.a-shun.com/archives/21296.html" title="轻松更新Twitter：Twitter Opera widget">轻松更新Twitter：Twitter Opera widget</a> (121)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21362.html/feed</wfw:commentRss> <slash:comments>65</slash:comments> </item> <item><title>Opera 中文 Wiki 上线</title><link>http://www.a-shun.com/archives/21360.html</link> <comments>http://www.a-shun.com/archives/21360.html#comments</comments> <pubDate>Wed, 19 May 2010 01:10:49 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[资源分享]]></category> <category><![CDATA[Opera]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21360</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>好消息，Opera 中文官方 Wiki 上线了。</p><p>其实这个在今年三月底的时候就上线并开始编辑了。不过由于大家都是在业余抽点时间去完善它，内容还不够多，也就没有公布。<br /> 当然，还是有些人通过搜索引擎和论坛先知道了。</p><p>现在有一定的信息量了，也需要吸引有能力的志愿编辑。是到了公开的时候。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21360.html">Opera 中文 Wiki 上线</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a>好消息，Opera 中文官方 Wiki 上线了。</p><p>其实这个在今年三月底的时候就上线并开始编辑了。不过由于大家都是在业余抽点时间去完善它，内容还不够多，也就没有公布。<br /> 当然，还是有些人通过搜索引擎和论坛先知道了。</p><p>现在有一定的信息量了，也需要吸引有能力的志愿编辑。是到了公开的时候。<br /> <span id="more-21360"></span></p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/op_wiki_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/op_wiki_02.jpg" alt="Opera 中文 Wiki" width="412" height="288" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">藕粉的呼唤</h2><p><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span> 是非常优秀的浏览器，拥有众多诱人特性和高度可定制性。</p><p>但要上手稍有难度。别的不说，光是快捷键和<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/21312.html" title="鼠标手势的优点和用法演示">鼠标手势</a></span>的修改、以及首选项编辑器，就让不少人望而却步。</p><p>随着用户的逐渐增多，感觉论坛上提问的人数和解决问题的人数比例严重失调。<br /> 而一些比较能折腾的朋友，也因为官方帮助文件的滞后，一直以来都靠着翻阅 <span class='wp_keywordlink'><a href="http://bbs.operachina.com/index.php" title="Opera中文社区" rel="nofollow" target="_blank">oc</a></span> 前辈们的经验，试着去掌控它，这无疑是挺困难的。</p><p>对于一个可以复杂的产品来说，一个中文 Wiki 的确很有必要。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">Wiki 的诞生</h2><p>最先的参与者是抱抱团的各位，这也是目前<a href="http://wiki.operachina.com/编辑团队" target="_blank">编辑团队</a>的主力。<br /> 在大家的怂恿 提议和吐槽下，Csineneo 说干就干，迅速的搭建起了这个　Wiki。</p><p>最开始大家都不熟悉 Wiki 的编辑器，但那几天进度还是不错的。特别是 CS ，熬了几个通宵把最复杂的条目（如 <a rel="external nofollow" href="opera:config"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig" />opera:config</a> 详解 和内部命令列表）都给搞定了，猛男啊 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  。</p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/op_wiki_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/op_wiki_01.jpg" alt="Opera Wiki" width="412" height="288" /></a></p><p>现在才上线不久，由于编辑的数量不多和 Opera 本身的复杂性，现在的条目还很少，一些条目也不够详细- -<br /> 不过一些需求比较大的条目：Opera:config 详解、内部命令列表、Opera 命令语法、<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/21312.html" title="鼠标手势的优点和用法演示">鼠标手势</a></span>设置、菜单定制、内容拦截规则、UserJs 和 UserCSS的使用，这些都可以在上面找到。<br /> 而且，分类还没有整理好。。。请善用搜索。</p><p>不过我们会逐渐完善，也欢迎有能力的玩家参与进来。</p><p>需要注意到是：</p><ul><blockquote><li>如果不参与编辑的话，无需注册。<span style="color: #ff0000;">游客就可以浏览全部资料</span>。</li><li>如果想参与编辑的话，请用 OC 论坛的 ID 进行注册。</li></blockquote></ul><p>欢迎访问：<a href="http://wiki.operachina.com/" target="_blank">http://wiki.operachina.com/</a></p><p>有任何建议欢迎提出。</p><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="Opera 中文 Wiki 上线" href="http://www.a-shun.com/archives/21360.html"> 《Opera 中文 Wiki 上线》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="Opera 中文 Wiki 上线" href="http://www.a-shun.com/archives/21360.html">http://www.a-shun.com/archives/21360.html</a></p><p style='border-top:3px solid #CCC;'>© <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span> for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21360.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21360.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a> 的文章</h3><ul><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年05月9日  -- <a href="http://www.a-shun.com/archives/21357.html" title="Flash Block For Opera/Firefox/Chrome">Flash Block For Opera/Firefox/Chrome</a> (91)</li><li>2010年04月13日  -- <a href="http://www.a-shun.com/archives/21352.html" title="支持多种上传方式可外链的相册推荐">支持多种上传方式可外链的相册推荐</a> (86)</li><li>2010年04月9日  -- <a href="http://www.a-shun.com/archives/21349.html" title="自动备份输入框内容：Textarea Backup Localstorage">自动备份输入框内容：Textarea Backup Localstorage</a> (60)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21360.html/feed</wfw:commentRss> <slash:comments>78</slash:comments> </item> <item><title>Flash Block For Opera/Firefox/Chrome</title><link>http://www.a-shun.com/archives/21357.html</link> <comments>http://www.a-shun.com/archives/21357.html#comments</comments> <pubDate>Sat, 08 May 2010 16:00:11 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[观察思考]]></category> <category><![CDATA[资源分享]]></category> <category><![CDATA[软件心得]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[UserJS]]></category> <category><![CDATA[观点]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21357</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/perspective"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/think.gif" alt="观点" /></a>Flash Block并不是屏蔽 Flash，只是限制 Flash 等插件元素。<br /> 虽然只是少部分人使用 FlashBlock。<br /> 但<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>认为Flash block是在保障浏览器高速运行、减少系统负担的同时，又不会让你错失网页上的精彩内容和影响功能使用的一种解决方案。</p><p>在此谈谈为何要这么做，以及分享下Flash Block For <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>/Firefox/Chrome 的方案。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21357.html">Flash Block For Opera/Firefox/Chrome</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/perspective"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/think.gif" alt="观点" /></a>Flash Block并不是屏蔽 Flash，只是限制 Flash 等插件元素。<br /> 虽然只是少部分人使用 FlashBlock。<br /> 但<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>认为Flash block是在保障浏览器高速运行、减少系统负担的同时，又不会让你错失网页上的精彩内容和影响功能使用的一种解决方案。</p><p>在此谈谈为何要这么做，以及分享下Flash Block For <span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>/Firefox/Chrome 的方案。<br /> <span id="more-21357"></span></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">什么是 Flash block 以及为什么要 Flash block</h2><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">对 Flash 残念</h3><ol><blockquote><li><strong>Flash的资源占用是很壮观的</strong>。谁用谁知道。</li><li>浏览网页出现的很多问题其实是插件导致的，Flash的非IE插件要顾及多个浏览器，问题也更多。</li><li>而<strong>很多广告使用的是Flas</strong>h，虽然过滤广告很不难。但除非你使用杀伤力较大的规则，否则很多第一次到访的网站经常要添加过滤。</li></blockquote></ol><p>还有，下面这个不是 Flash 本身的问题，但却是曾经最头痛的。<br /> 有些热情的朋友们喜欢在博客或者论坛上挂自动播放的音乐，当你一下了开着十几个到几十块标签，你很难找出那属于哪个页面并去及时暂停。而如果同时有几个页面出现这种情况，那重叠的声音在晚上简直是噩梦，只能设置静音了。</p><p>无论是上面说的背景音乐还是广告、视频，都会占用带宽，影响页面载入速度。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">Flash 的重要性</h3><p><span style="color: #ff0000;">Flash 在当前环境下的重要性是显而易见的</span>。</p><p>绝大多数的视频网站（尤其国内）都采用 Flash，绝大多数的音乐播放器采用 Flash。也相信很多人装完浏览器第一件事就是安装 Adobe Flash 插件。</p><p>Html5 会消灭 Flash ？也许吧。但在现阶段，在解决那些技术问题和非技术问题（如目前 Mozilla 和 Opera 拒绝支持 H.264 商业视频编/解码器，而采用开源的Ogg Theora）之前，不要谈取代。除非你的对乔帮主的忠诚度高于理智那就另当别论了。</p><p>而就算上面那些都不是问题了，如果 IE 依然占据绝大多数市场份额，开发者会不考虑这些用户么。所以 Flash 还将长期存在。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">Flash block 的存在价值</h3><p><strong>Flash block 也就是屏蔽了 Flash 插件内容，留下一个插件占位符，可以在不用重新载入页面的情况下点击载入。</strong></p><p>目前我们无法要求网站不过多使用花俏的 Flash 和 自动播放的音乐，那么这对于追求速度和简洁的朋友来说是有必要的。<br /> so，<span style="color: #ff0000;">Block Flash是保障浏览器高速运行、减少系统负担的同时，又不会让你错失网页上的精彩内容和影响功能使用的一种解决方案</span>。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">FlashBlock For Opera</h2><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">1.内置的Demand Plugin开关</h3><p>拿之前的一篇文章《<a href="http://www.a-shun.com/archives/21299.html">Win7娘窓辺ななみ系统主题音效 For WinXp</a>》来做示范。</p><p style="text-align: center;"><a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_03.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_03.jpg" alt="FlashBlock For Opera" width="386" height="143" /></a></p><p>使用过 Opera Turbo 的朋友看着应该很眼熟。Turbo模式为速度插件内容是默认屏蔽的，只有当用户点击才开始下载和播放。</p><p>其实这个功能在非 Turbo 模式也可以使用。勾选<a rel="external nofollow" href="opera:config#UserPrefs|EnableOnDemandPlugin"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig" />opera:config#UserPrefs|EnableOnDemandPlugin</a>即可看到效果。</p><p>优点：</p><ol><blockquote><li><span style="color: #008000;">不需要安装扩展，不需要Js支持</span>。</li><li><span style="color: #008000;">作为范围是所有的插件</span>，不仅仅是 Flash ，Silverlight之类的也同样有效，其实叫做Plugins Block更为恰当。</li></blockquote></ol><p>缺点：<span style="color: #ff0000;">不能设置白名单</span>。<br /> 这点比较不爽，经常去视频网站的就放弃这招吧。追求原生和极速的朋友们则是首选。</p><p>我们可以把它<span style="color: #008000;">做成Opera按钮方便启用和禁用</span>，点击或者拖到工具栏添加。<br /> <a title="Plugin Mode" rel="external nofollow" href="opera:/button/Go%20to%20page,%20%22opera:config%22,%20,%20%22Plugin%20Mode%20is%20Manually%22,%20%22Resume%20transfer%22%20&#038;%20Delay,%201%20&#038;%20Go%20to%20page,%20%22javascript:(function(){var%20as=opera.getPreference('User%20Prefs','Enable%20On%20Demand%20Plugin');if(as==0){var%20as=1}else{var%20as=0}opera.setPreference('User%20Prefs','Enable%20On%20Demand%20Plugin',as);window.close()})();%22%20%3E%20Set%20preference,%20%22User%20Prefs|Enable%20On%20Demand%20Plugin=0%22,%20,%20%22Plugin%20Mode%20is%20Auto%22,%20%22Restart%20transfer%22"><img src="http://www.a-shun.com/img/ico/button.png" alt="opera按钮" />Plugin Mode</a></p><p>需要注意的是该方法仅适用于 Opera10.5或以上版本。</p><h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">2.UserJs、UserCss方案</h3><p>来自俄罗斯著名的 Opera 用户 Lex1。</p><p>下载这个压缩包：<a href="http://www.ruzanow.ru/opera/flashblocker.zip">FlashBlock For Opera</a>。</p><p>压缩包内有个适合不同版本（Opera8～10.5x）的　UserJs　文件和　Css。<br /> 老版本用JS+ CSS 的方式，也有Jsonly，多种显示样式。部分可以向上兼容，选择适合的即可。</p><p><span style="color: #008000;">Js方式的支持白名单</span>。</p><p>把相应的文件放到<a rel="external nofollow" href="opera:config#User JavaScript File"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig" />Userjs目录</a>和<a rel="external nofollow" href="opera:config#UserPrefs|LocalCSSFilesDirectory"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig" />UserCss目录</a>中即可。作者还提供了一个<span style="color: #008000;">快速启用和禁用</span>该功能的按钮（在FlashBlocker-info.html中）。</p><p style="text-align: center;"><a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_02.jpg" alt="Flash Block For Opera" /></a></p><p>另外，<span class='wp_keywordlink'><a href="http://bbs.operachina.com/index.php" title="Opera中文社区" rel="nofollow" target="_blank">oc</a></span>还有一些帖子也分享了类似的方案，比如这篇：<a href="http://bbs.operachina.com/viewtopic.php?f=41&amp;t=30093" target="_blank">http://bbs.operachina.com/viewtopic.php?f=41&amp;t=30093</a><br /> 其他的可以在论坛提问。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">FlashBlock For Firefox</h2><p>Flashblock 扩展程序，这个应该算是 Block 类扩展下载量前三的，很受欢迎。</p><p style="text-align: center;"><a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_05.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_05.jpg" alt="FlashBlock For Firefox" width="418" height="158" /></a></p><p>我在FF下也用着它，<span style="color: #008000;">可以比较方便的设置白名单</span>。<br /> <span style="color: #ff0000;">必须依赖JavaScript</span>。</p><p style="text-align: center;"><a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_07.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_07.jpg" alt="FlashBlock" width="470" height="275" /></a></p><p>下载：<a href="https://addons.mozilla.org/zh-CN/firefox/addon/433">FlashBlock For Firefox</a></p><p>当然，FF肯定还有同类的扩展和脚本，在这就不多做介绍，毕竟我了解不多。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">FlashBlock For Chrome</h2><p>Chrome 下同名的插件有两个，这里介绍 josorek 写的，设置比较强大。</p><p style="text-align: center;"><a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_04.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_04.jpg" alt="FlashBlock For Chrome" width="354" height="260" /></a></p><p>下载：<a href="https://chrome.google.com/extensions/detail/gofhjkjmkpinhpoiabjplobcaignabnl">FlashBlock for Chrome</a>。</p><p>它能够<span style="color: #008000;">比较轻松的定义插件占位符样式，较为方便的设置白名单</span>，能支持Flash 和 Silverlight。</p><p style="text-align: center;"><a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_06.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_06.jpg" alt="Chrome FlashBlock 扩展" width="386" height="338" /></a></p><p>个人认为这是 Chrome 的扩展中少有的可以强于 FF 同类扩展。</p><p>但是这两个浏览器的 FlashBlock 都<span style="color: #ff0000;">必须依赖 JavaScript </span>，估计原理也和用户脚本的差不多。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">通用脚本</h2><p>这三个浏览器都支持用户脚本，虽然有点不太。但很多脚本是可以通用的。</p><p style="text-align: left;">比如这个<a href="http://userscripts.org/scripts/show/56912" target="_blank">BlockFlash Plus</a>，说明上写着仅支持 Chrome，但实际测试该脚本在 Opera 和 Firefox 中都是可以工作的。<br /> <a href="http://img.a-shun.com/think/FlashBlock/FlashBlock_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/think/FlashBlock/FlashBlock_01.jpg" alt="BlockFlash Plus" width="314" height="80" /></a><br /> 它对 Flash 和 Silverlight 都有效。除了<span style="color: #008000;">支持多浏览器</span>外，该脚本<span style="color: #008000;">在点开 Flash 之后还能对其重新屏蔽</span>。</p><p>但是比较大的缺陷是：<span style="color: #ff0000;">该脚本只是屏蔽 Flash 内容，而不是拒载</span>。只能减少机器负担，并不能缩短页面载入时间。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">PS</h2><p>我回来了。<br /> 刚刚搬家结束，生活开始走向正常。这边环境还好。<br /> 不过最近依然比较忙。</p><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="Flash Block For Opera/Firefox/Chrome" href="http://www.a-shun.com/archives/21357.html"> 《Flash Block For Opera/Firefox/Chrome》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="Flash Block For Opera/Firefox/Chrome" href="http://www.a-shun.com/archives/21357.html">http://www.a-shun.com/archives/21357.html</a></p><p style='border-top:3px solid #CCC;'>© A.shun for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21357.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21357.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/userjs" rel="tag">UserJS</a>, <a href="http://www.a-shun.com/archives/tag/perspective" rel="tag">观点</a> 的文章</h3><ul><li>2010年04月9日  -- <a href="http://www.a-shun.com/archives/21349.html" title="自动备份输入框内容：Textarea Backup Localstorage">自动备份输入框内容：Textarea Backup Localstorage</a> (60)</li><li>2010年03月17日  -- <a href="http://www.a-shun.com/archives/21341.html" title="浏览器状态栏，不再需要了么？">浏览器状态栏，不再需要了么？</a> (137)</li><li>2009年12月29日  -- <a href="http://www.a-shun.com/archives/21324.html" title="打造评论和发帖的利器：BBcode For Opera">打造评论和发帖的利器：BBcode For Opera</a> (93)</li><li>2009年10月25日  -- <a href="http://www.a-shun.com/archives/21298.html" title="Opera教程:掌控链接的打开方式">Opera教程:掌控链接的打开方式</a> (144)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月30日  -- <a href="http://www.a-shun.com/archives/21370.html" title="获取 SkyDrive 真实外链地址的新方法">获取 SkyDrive 真实外链地址的新方法</a> (72)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21357.html/feed</wfw:commentRss> <slash:comments>91</slash:comments> </item> <item><title>支持多种上传方式可外链的相册推荐</title><link>http://www.a-shun.com/archives/21352.html</link> <comments>http://www.a-shun.com/archives/21352.html#comments</comments> <pubDate>Tue, 13 Apr 2010 10:11:03 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[资源分享]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[相册]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21352</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/website"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/recommend.gif" alt="推荐" /></a>这几天图海给我发来了vip邀请。<br /> <a href="http://www.tuhigh.com/" target="_blank">图海(tuhigh)</a>主要针对摄影爱好者<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/album" title="查看 相册 的全部文章" target="_blank">相册</a></span>和社区。很多知名摄影博客都推荐过，我就不赘述。</p><p><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>并不是摄影爱好者，起码目前还不是。<br /> 也并不需要外链的图床，小博人气不高，目前空间和流量都还算够用。</p><p>但试用之后发觉它优点明显，也就来介绍下。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21352.html">支持多种上传方式可外链的相册推荐</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/website"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/recommend.gif" alt="推荐" /></a>这几天图海给我发来了vip邀请。<br /> <a href="http://www.tuhigh.com/" target="_blank">图海(tuhigh)</a>主要针对摄影爱好者<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/album" title="查看 相册 的全部文章" target="_blank">相册</a></span>和社区。很多知名摄影博客都推荐过，我就不赘述。</p><p><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>并不是摄影爱好者，起码目前还不是。<br /> 也并不需要外链的图床，小博人气不高，目前空间和流量都还算够用。</p><p>但试用之后发觉它优点明显，也就来介绍下。<br /> <span id="more-21352"></span></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">强大的图片上传功能</h2><ol><blockquote><li><strong>支持批量上传</strong>（用Ctrl和Shift来选择），尽管不能像Photobucket那样选择后自动上传。</li><li><strong>打包上传</strong>，支持40M以内的zip和rar格式。这个很方便，加快传输速度和减少操作。</li><li><strong>邮件上传</strong>，支持发送图片或者压缩包</li><li>还提供了一个<strong>Friefox扩展</strong>，用来实现<strong>网页图片的一键上传</strong>。这个对于经常保存感兴趣的图片或者用U盘版浏览器的朋友来说很方便。</li></blockquote></ol><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">服务的初步了解</h2><p>这也算是比较老牌的相册，很稳定。对于非摄影图片限制较多，摄影爱好者问题不大。</p><p>免费用户限制较多（空间不限，这里说的是月上传量和外链流量、以及NP的比例），<a href="http://www.tuhigh.com/org/buyVip.jsf" target="_blank">vip的优势</a>明显，但这样也可以让服务持久稳定。</p><p>另外，上传之后图片名是一个串号，国内相册几乎都是这个样子。</p><p>为什么要提及这个问题呢，前面<a href="http://www.a-shun.com/archives/21347.html">更换图片空间</a>的时候已经说过了，<span style="color: #008000;">不改变文件名，可以降低往后可能迁移的代价</span>。<br /> 不过，图海提供的<span style="color: #ff0000;">本地备份</span>功能，也就不存在这个问题了。</p><p style="text-align: center;"><a href="http://img.a-shun.com/web/tuhigh/tuhigh_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/web/tuhigh/tuhigh_01.jpg" alt="图海图片备份" width="538" height="203" /></a></p><p>当然，他们这种方式对于懒得给图片命名的人反而是一种方便。</p><p>初步了解就是这样的。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;"><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>中的一键上传图片</h2><p>前面说到有个可以方便保存网页图片的Friefox扩展，虽然FF也不错。但大家都知道，<span style="color: #ff0000;">A.shun只爱<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span></span>。</p><p>稍微分析了一下那个tuhigh.xpi，其实结构也简单。在Opera下一行简单的命令即可实现 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> 。<br /> 编辑Opera的<a rel="external nofollow" href="opera:config#Menu Configuration" target="_blank"><img src="http://img.a-shun.com/ico/opera.png" alt="operaconfig" />菜单配置文件</a>，在[Image Popup Menu]和[Image Link Popup Menu]下面添加以下代码。</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Item, "上传到图海"=External action,,,,"Display cached images only" | Copy image address &amp; Go to page, "http://www.tuhigh.com/help/surf.jsf?id=%c"</pre><p>记得保存为UTF-8格式，然后刷新配置或者重启op，即可在图片和图片链接的右键菜单看到对应的条目。<br /> 效果如下：</p><p style="text-align: center;"><a href="http://img.a-shun.com/web/tuhigh/tuhigh_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/web/tuhigh/tuhigh_02.jpg" alt="Opera一键上传图片" width="156" height="184" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">PS</h2><p>PS1：手头上有少量邀请码。需要的同学可以留言提出。在图海注册之后，在其<a href="http://www.tuhigh.com/member/applyVip.jsf" target="_blank">免费申请VIP</a>页面，输入邀请编码即可。</p><p>PS2：vip的期限是一年，但即使是到期之后，<span style="color: #ff0000;">vip期间上传的图片永远都可以外链</span>。</p><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="支持多种上传方式可外链的相册推荐" href="http://www.a-shun.com/archives/21352.html"> 《支持多种上传方式可外链的相册推荐》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="支持多种上传方式可外链的相册推荐" href="http://www.a-shun.com/archives/21352.html">http://www.a-shun.com/archives/21352.html</a></p><p style='border-top:3px solid #CCC;'>© A.shun for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21352.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21352.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/album" rel="tag">相册</a> 的文章</h3><ul><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年05月19日  -- <a href="http://www.a-shun.com/archives/21360.html" title="Opera 中文 Wiki 上线">Opera 中文 Wiki 上线</a> (78)</li><li>2010年05月9日  -- <a href="http://www.a-shun.com/archives/21357.html" title="Flash Block For Opera/Firefox/Chrome">Flash Block For Opera/Firefox/Chrome</a> (91)</li><li>2010年04月9日  -- <a href="http://www.a-shun.com/archives/21349.html" title="自动备份输入框内容：Textarea Backup Localstorage">自动备份输入框内容：Textarea Backup Localstorage</a> (60)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21352.html/feed</wfw:commentRss> <slash:comments>86</slash:comments> </item> <item><title>自动备份输入框内容：Textarea Backup Localstorage</title><link>http://www.a-shun.com/archives/21349.html</link> <comments>http://www.a-shun.com/archives/21349.html#comments</comments> <pubDate>Thu, 08 Apr 2010 17:59:08 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[资源分享]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[UserJS]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21349</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a><strong>Textarea Backup Localstorage</strong>是能够<span style="color: #008000;"><strong>帮你自动保存文本框数据</strong></span>的脚本。<br /> 预防因为误操作和网络问题提交不了评论等情况造成的数据丢失等问题。刷新和离开当前页面或者重启浏览器，你输入的文字都还能重新出现。这是一个杀手级的脚本。</p><p>这和之前介绍过一个<a href="http://www.a-shun.com/archives/18312.html">Textarea Backup</a>脚本作用基本相同。 不同之处在于<span style="color: #ff0000;">数据是保存在Local storage（html5本地存储）中的</span>，<span style="color: #ff0000;">不写cookies</span>，不会出现单个站点cookies达到浏览器限制而丢失一些登录信息等问题。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21349.html">自动备份输入框内容：Textarea Backup Localstorage</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a><strong>Textarea Backup Localstorage</strong>是能够<span style="color: #008000;"><strong>帮你自动保存文本框数据</strong></span>的脚本。<br /> 预防因为误操作和网络问题提交不了评论等情况造成的数据丢失等问题。刷新和离开当前页面或者重启浏览器，你输入的文字都还能重新出现。这是一个杀手级的脚本。</p><p>这和之前介绍过一个<a href="http://www.a-shun.com/archives/18312.html">Textarea Backup</a>脚本作用基本相同。 不同之处在于<span style="color: #ff0000;">数据是保存在Local storage（html5本地存储）中的</span>，<span style="color: #ff0000;">不写cookies</span>，不会出现单个站点cookies达到浏览器限制而丢失一些登录信息等问题。<br /> <span id="more-21349"></span></p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/js/opj_textarea-backup-localstorage_1.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/js/opj_textarea-backup-localstorage_1.jpg" alt="Textarea Backup Localstorage" width="545" height="306" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">textarea backup localstorage的特点</h2><ol><blockquote><li>支持自动恢复文本框数据。</li><li>数据是保存在Local storage（html5本地存储）中的，不写cookies</li><li>拥有可视化操作菜单（通过文本框右上角的按钮呼出）：还原以前备份的评论，删除以前的备份评论，清除评论。</li><li>还能多个可自定义的选项：设置何时触发备份（自定义时间、键盘动作、提交的时候、光标移除文本框）、文本框内容、覆盖询问、数据过期时间等。</li></blockquote></ol><p><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>这就不再对<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/userjs" title="查看 UserJS 的全部文章" target="_blank">UserJS</a></span>功能和FF的GreaseMonkey做介绍了，反正使用很简单。</p><p style="text-align: center;"><a href="http://img.a-shun.com/Opera/js/opj_textarea-backup-localstorage_2.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/Opera/js/opj_textarea-backup-localstorage_2.jpg" alt="Textarea Backup脚本" width="543" height="306" /></a></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">textarea-backup-localstorage.user.js下载</h2><blockquote><p>来自：<a href="http://extendopera.org/" target="_blank">extendopera.org</a></p><p>作者：Frenzie</p><p>下载：<a href="http://extendopera.org/userjs/content/textarea-backup-localstorage" target="_blank">http://extendopera.org/userjs/content/textarea-backup-localstorage</a></p></blockquote><p>感谢<span class='wp_keywordlink'><a href="http://bbs.operachina.com/index.php" title="Opera中文社区" rel="nofollow" target="_blank">oc</a></span>的版主<span style="color: #ff0000;">DJ</span>的推荐，威武～ 。这是在Textarea Backup和Textarea Backup with expiry的基础上做出改进而来的。</p><p>仅适用于Opera10.5和Firefox3.6、Chrome5（未测试）以上版本等支持 用户脚本和localstorage的浏览器。<br /> Tips：Opera10.52用户可以在<a rel="external nofollow" href="opera:webstorage"><img src="http://www.a-shun.com/img/ico/opera.png" alt="operaconfig" />opera:webstorage</a>中管理离线数据和进行一些站点设置。在新版本的浏览器中，Textarea Backup已经可以被取代了。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">Textarea Backup Localstorage自定义设置</h2><p>可以自定义的地方还是蛮多的。 A.shun对js不是太了解，这里只介绍几个常用的选项。如有不对的请指正。<br /> 用编辑器打开js文件。找到Preferences段。修改各项等号后面的内容即可，基本上使用布尔字符和数字。</p><ul><blockquote><li><span style="color: #008000;">menu_display</span>，是否显示菜单，默认显示</li><li><span style="color: #008000;">keypress_backup</span>，有按键动作时备份，默认开启</li><li><span style="color: #008000;">blur_backup</span>，焦点离开文本框时备份，默认开启</li><li><span style="color: #008000;">timed_backup</span>，定时备份，默认关闭</li><li><span style="color: #008000;">backup_interval</span>，备份间隔，默认为1000毫秒</li><li><span style="color: #008000;">keep_after_submission</span>，提交时保存</li><li><span style="color: #008000;">restore_auto</span>，自动恢复文本框内容，默认启用。</li><li><span style="color: #008000;">ask_overwrite</span>，覆盖前询问，默认启用</li><li><span style="color: #008000;">em_available</span>，这个我还不是太明白。只有当自动恢复被禁用时，此选项才有效。</li><li><span style="color: #008000;">expire_after_days</span>/<span style="color: #008000;">expire_after_hours</span>/<span style="color: #008000;">expire_after_minutes</span>，数据过期时间，默认为2小时30分。全部设置为0则不计算过期时间。</li></blockquote></ul><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="自动备份输入框内容：Textarea Backup Localstorage" href="http://www.a-shun.com/archives/21349.html"> 《自动备份输入框内容：Textarea Backup Localstorage》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="自动备份输入框内容：Textarea Backup Localstorage" href="http://www.a-shun.com/archives/21349.html">http://www.a-shun.com/archives/21349.html</a></p><p style='border-top:3px solid #CCC;'>© A.shun for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21349.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21349.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/userjs" rel="tag">UserJS</a> 的文章</h3><ul><li>2010年05月9日  -- <a href="http://www.a-shun.com/archives/21357.html" title="Flash Block For Opera/Firefox/Chrome">Flash Block For Opera/Firefox/Chrome</a> (91)</li><li>2009年12月29日  -- <a href="http://www.a-shun.com/archives/21324.html" title="打造评论和发帖的利器：BBcode For Opera">打造评论和发帖的利器：BBcode For Opera</a> (93)</li><li>2009年10月25日  -- <a href="http://www.a-shun.com/archives/21298.html" title="Opera教程:掌控链接的打开方式">Opera教程:掌控链接的打开方式</a> (144)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月30日  -- <a href="http://www.a-shun.com/archives/21370.html" title="获取 SkyDrive 真实外链地址的新方法">获取 SkyDrive 真实外链地址的新方法</a> (72)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21349.html/feed</wfw:commentRss> <slash:comments>60</slash:comments> </item> <item><title>懒人必备：Opera自动填表的简单实现</title><link>http://www.a-shun.com/archives/21345.html</link> <comments>http://www.a-shun.com/archives/21345.html#comments</comments> <pubDate>Wed, 24 Mar 2010 14:46:57 +0000</pubDate> <dc:creator>A.shun</dc:creator> <category><![CDATA[效率提升]]></category> <category><![CDATA[Bookmarklet]]></category> <category><![CDATA[Opera]]></category> <category><![CDATA[效率]]></category><guid isPermaLink="false">http://www.a-shun.com/?p=21345</guid> <description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a></p><p>分享一个小技巧：<span style="color: #ff0000;">简单的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>的自动填表方式</span>，<span style="color: #ff0000;">尤其适合经常填写大量简单表单</span>（比如博客评论者信息）的朋友们。</p><p>方法虽然简单，但还算管用。从此告别输错Email或域名的烦恼。</p><p>Opera是我最喜欢的浏览器，但一如所有的软件，都有其自身的缺点。比如没有Ai RoboForm和LastPass那样的工具，自带填写表单功能就让我偶尔吐槽- -。</p><p>Wand作为一个密码管理器算是很强大的，支持多帐号和自动提交，但那只能对保存过的站点生效。<br /> 而没有保存过的，只能用：右键—插入个人信息。这对于偶尔的注册和完善个人资料还是不错的。<br /> 但是像<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>这样频繁的在其他博客评论的朋友们，只有两个字：不爽～</p><p>so，不爽就折腾吧。<br /> [......]</p><p class="read-more">继续阅读：<a href="http://www.a-shun.com/archives/21345.html">懒人必备：Opera自动填表的简单实现</a></p>]]></description> <content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/opera"><img style="float: right;" src="http://www.a-shun.com/wp-content/uploads/opera.gif" alt="opera" /></a></p><p>分享一个小技巧：<span style="color: #ff0000;">简单的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>的自动填表方式</span>，<span style="color: #ff0000;">尤其适合经常填写大量简单表单</span>（比如博客评论者信息）的朋友们。</p><p>方法虽然简单，但还算管用。从此告别输错Email或域名的烦恼。</p><p><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/opera" title="查看 Opera 的全部文章" target="_blank">Opera</a></span>是我最喜欢的浏览器，但一如所有的软件，都有其自身的缺点。比如没有Ai RoboForm和LastPass那样的工具，自带填写表单功能就让我偶尔吐槽- -。</p><p>Wand作为一个密码管理器算是很强大的，支持多帐号和自动提交，但那只能对保存过的站点生效。<br /> 而没有保存过的，只能用：右键—插入个人信息。这对于偶尔的注册和完善个人资料还是不错的。<br /> 但是像<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>这样频繁的在其他博客评论的朋友们，只有两个字：不爽～</p><p>so，不爽就折腾吧。<br /> <span id="more-21345"></span></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">演示</h2><p style="text-align: center;"><img class="aligncenter" src="http://img.a-shun.com/Opera/op_onekey_RoboFrom.gif" alt="Opera RoboFrom.gif" width="457" height="301" /></p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">Opera一键填表方法的简单实现</h2><p>其实很简单。<br /> 先在“首选项”—“高级”—“快捷键”，对标准菜单建立一个副本，重命名。当然，你也可以编辑配置文件。</p><p>新建一个快捷键，按键随意（如：F1）。<br /> 命令为：</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">focus previous widget &amp;Insert, "Url" &amp; focus previous widget &amp; Insert, "Email" &amp; focus previous widget &amp; Insert, "A.shun" &amp; focus next widget &amp; focus next widget &amp; focus next widget</pre><p>加在Application、Browser Window、Document Window其中一段均可。<br /> 当然，上面的Url、Email和A.shun分别对应你的域名、邮箱和ID。</p><p>这样，往后新到一个博客去发表评论的时候，<span style="color: #008000;">只要先定位到评论输入框（注意是评论输入框不是用户名输入框），按下快捷键，Opera就会自动帮你把上面三行填好，并将焦点回到评论输入框。</span></p><p>因为评论框比较大，好定位，才这么写的。如果遇到有验证码的，则定位到验证码输入框，按下快捷键再输验证码。万恶的验证码～</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">Opera自动填表的补充</h2><p>上面的方法固然很方便，但是遇到一些有个性的主题，会把信息框放在输入框的下面，就不好办了。根据我的经验来看，这种不超过10%。</p><p>so，补充一种写法，虽然没有上面的方便，但通用性强。</p><p>这样在要发表评论的时候，是定位到信息框的第一格（通常是Name），按下快捷键。</p><p>新建一个快捷键，如（ctrl+F1）。命令为：</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Insert, "Name" &amp; focus next widget &amp; Insert, "Email" &amp; focus next widget &amp;Insert, "Url" &amp; focus next widget</pre><p>A.shun现在就是F1使用第一种方式填表，ctrl+F1就用第二种。<br /> 如果你不喜欢自己判断，那么只用这一种也够了。</p><h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">javasript方式</h2><p><a href="http://aoy.me/" target="_blank">Auston Jary</a>同学补充的JS方式。<br /> 优点：<span style="color: #008000;">可用于所有浏览器</span>，不需要先定位到评论框（这个其实一样，反正输入评论时还是要定位的）。<br /> 缺点：针对id的写法，<span style="color: #ff0000;">遇到wordpress以外的等就得修改命令了</span>，需要启用javasript。</p><p>命令为：</p><pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">Go to Page, "javascript:(function(){document.getElementById('author').value='名字';document.getElementById('email').value='邮箱';document.getElementById('url').value='网址';})()"</pre><p style='background-color:#f4f5f7;'>&raquo; 转载请注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="懒人必备：Opera自动填表的简单实现" href="http://www.a-shun.com/archives/21345.html"> 《懒人必备：Opera自动填表的简单实现》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="懒人必备：Opera自动填表的简单实现" href="http://www.a-shun.com/archives/21345.html">http://www.a-shun.com/archives/21345.html</a></p><p style='border-top:3px solid #CCC;'>© A.shun for <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21345.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21345.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a><br />该Feed只供个人阅读，转载请保留链接，不得用于商业目的。 | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a><br /><span style="color: #ff0000;">小站广告位出售中，欢迎咨询，<a href="http://www.a-shun.com/sponsor">查看详情</a></span>。</p><div id='related_posts'><h3>还有更多关于 <a href="http://www.a-shun.com/archives/tag/bookmarklet" rel="tag">Bookmarklet</a>, <a href="http://www.a-shun.com/archives/tag/opera" rel="tag">Opera</a>, <a href="http://www.a-shun.com/archives/tag/xl" rel="tag">效率</a> 的文章</h3><ul><li>2010年07月14日  -- <a href="http://www.a-shun.com/archives/21373.html" title="把强力小书签 Quix 整合到浏览器">把强力小书签 Quix 整合到浏览器</a> (58)</li><li>2010年07月26日  -- <a href="http://www.a-shun.com/archives/21376.html" title="通过参数给 Opera 指定多组不同的配置">通过参数给 Opera 指定多组不同的配置</a> (56)</li><li>2010年07月2日  -- <a href="http://www.a-shun.com/archives/21371.html" title="Opera 各种安装包的区别和便携化">Opera 各种安装包的区别和便携化</a> (56)</li><li>2010年06月30日  -- <a href="http://www.a-shun.com/archives/21370.html" title="获取 SkyDrive 真实外链地址的新方法">获取 SkyDrive 真实外链地址的新方法</a> (72)</li><li>2010年06月19日  -- <a href="http://www.a-shun.com/archives/21366.html" title="更加方便的 Opera 代理按钮和菜单">更加方便的 Opera 代理按钮和菜单</a> (82)</li><li>2010年05月29日  -- <a href="http://www.a-shun.com/archives/21362.html" title="更新 Opera 代理切换菜单和按钮">更新 Opera 代理切换菜单和按钮</a> (65)</li><li>2010年05月19日  -- <a href="http://www.a-shun.com/archives/21360.html" title="Opera 中文 Wiki 上线">Opera 中文 Wiki 上线</a> (78)</li><li>2010年05月13日  -- <a href="http://www.a-shun.com/archives/21358.html" title="Dropbox 被墙之后及同类服务推荐">Dropbox 被墙之后及同类服务推荐</a> (131)</li></ul></div>]]></content:encoded> <wfw:commentRss>http://www.a-shun.com/archives/21345.html/feed</wfw:commentRss> <slash:comments>143</slash:comments> </item> </channel> </rss>