<?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>EP.PE &#187; firefox</title>
	<atom:link href="http://ep.pe/tag/firefox/feed" rel="self" type="application/rss+xml" />
	<link>http://ep.pe</link>
	<description>all about ep</description>
	<lastBuildDate>Sun, 27 Nov 2011 15:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Mac OS X 下利用Apple Script制作脚本快速切换代理</title>
		<link>http://ep.pe/728</link>
		<comments>http://ep.pe/728#comments</comments>
		<pubDate>Sun, 31 Oct 2010 05:12:48 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[Gadget]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[Mac Os X]]></category>

		<guid isPermaLink="false">http://epis.me/?p=728</guid>
		<description><![CDATA[Mac OS X下全局代理很好用,但是需要切换的时候就比较麻烦了,需要网络偏好设置&#8211;高级&#8211;代理这些菜单一级一级点进去,利用脚本来实现代理切换,就会方便很多. 脚本主要利用系统中的networksetup这个工具,在终端中输入以下命令 networksetup -commands 就可以看到命令指南,利用这些命令可以实现很多功能,不仅仅是代理的设置与切换 这里我设置socks代理,自动代理,以及关闭代理的切换,同时通过Growl来通知: -- Switch Proxy -- Author: ep -- MAC OS Version: OSX/SnowLeopard -- Date: 10/31/2010 tell application "Finder" set proxy_dialog to display dialog "Switch Proxy. Select Interface:" buttons {"All On", "Auto Proxy", "All Off"} default button "All On" with title "Switch Proxy" giving up after 5 set proxy_interface [...]]]></description>
			<content:encoded><![CDATA[<p>Mac OS X下全局代理很好用,但是需要切换的时候就比较麻烦了,需要网络偏好设置&#8211;高级&#8211;代理这些菜单一级一级点进去,利用脚本来实现代理切换,就会方便很多.<br />
<a href="http://epis.me/wp-content/uploads/2010/10/proxy.png"><img class="aligncenter size-full wp-image-730" title="proxy" src="http://epis.me/wp-content/uploads/2010/10/proxy.png" alt="" width="374" height="122" /></a><br />
脚本主要利用系统中的networksetup这个工具,在终端中输入以下命令</p>
<pre lang="bash">networksetup -commands</pre>
<p>就可以看到命令指南,利用这些命令可以实现很多功能,不仅仅是代理的设置与切换</p>
<p>这里我设置socks代理,自动代理,以及关闭代理的切换,同时通过Growl来通知:</p>
<pre>
-- Switch Proxy
-- Author: ep
-- MAC OS Version: OSX/SnowLeopard
-- Date: 10/31/2010

tell application "Finder"
	set proxy_dialog to display dialog "Switch Proxy. Select Interface:" buttons {"All On", "Auto Proxy", "All Off"} default button "All On" with title "Switch Proxy" giving up after 5
	set proxy_interface to button returned of proxy_dialog
end tell

tell application "GrowlHelperApp"
	set the allNotificationsList to {"Switch Proxy"}
	set the enabledNotificationsList to {"Switch Proxy"}
	register as application "Switch Proxy" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Script Editor"
end tell

if proxy_interface is "All On" then
	do shell script "networksetup -setsocksfirewallproxy AirPort 127.0.0.1 7070"
	do shell script "networksetup -setsocksfirewallproxystate AirPort on"
	do shell script "networksetup -setautoproxystate AirPort off"

	tell application "GrowlHelperApp"
		notify with name "Switch Proxy" title "Proxy All On" description "Switch Proxy All On." application name "Switch Proxy"
	end tell
end if

if proxy_interface is "Auto Proxy" then
	do shell script "networksetup -setautoproxyurl AirPort file://localhost/Users/ep/Documents/autoproxy.pac"
	do shell script "networksetup -setautoproxystate AirPort on"
	do shell script "networksetup -setsocksfirewallproxystate AirPort off"

	tell application "GrowlHelperApp"
		notify with name "Switch Proxy" title "Auto Proxy On" description "Switch Auto Proxy On." application name "Switch Proxy"
	end tell
end if

if proxy_interface is "All Off" then
	do shell script "networksetup -setsocksfirewallproxystate AirPort off"
	do shell script "networksetup -setautoproxystate AirPort off"

	tell application "GrowlHelperApp"
		notify with name "Switch Proxy" title "Proxy All Off" description "Switch Proxy All Off." application name "Switch Proxy"
	end tell
end if</pre>
<p>这是成品,解压后直接运行就可以,如果需要修改脚本,右键点击显示包内容,找到main.scpt进行修改,主要是pac文件的位置和socks代理的端口<br />
<a href="http://epis.me/wp-content/uploads/2010/10/switch_proxy.zip">switch_proxy</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ep.pe/728/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>我一直在用的Firefox插件</title>
		<link>http://ep.pe/207</link>
		<comments>http://ep.pe/207#comments</comments>
		<pubDate>Sat, 25 Apr 2009 02:27:01 +0000</pubDate>
		<dc:creator>ep</dc:creator>
				<category><![CDATA[Gadget]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://epis.me/?p=207</guid>
		<description><![CDATA[种类繁多的插件让Firefox变得异常强大，我常用的插件如下： 1.Adblock Plus 网络浏览，满眼广告，交给adblock plus来解决，基本碰不到广告遮眼的情况了。 2.AutoPager 国人写的自动翻页的插件，很好用，无论是google,baidu的搜索结果，还是discuz论坛，都可以自动翻页，我需要做的，仅仅是一直下拉。 3.IE Tab 在Windows机器上，这个插件是必装的，有时候有些站点用firefox浏览就面目全非，或者索性不支持firefox，例如QQ空间，一键切换到IE引擎，便可以很方便的继续浏览了。 4.Xmarks (formerly Foxmarks) 自动同步书签，类似的有delicious和stumbleupon，不过stumbleupon至今不支持中文，delicious也不是很美观。 5.GooglePreview 在google搜索结果里自动显示页面缓存图片，比较直观。 6.Tab Mix Plus 标签页增强插件，功能很强大，通过鼠标简单操作就可以完成标签页的关闭，新建等等。 7.Flagfox 显示当前站点IP的所在地区，很直观的就能了解到这个站点是什么国家的。 8.Chromifox Basic 这个不是插件，是个主题，但是真的很清爽，在firefox上表现的很完美。 9.Screengrab 截屏工具，会经常用到。 10.Easy DragToGo 简单的拖拽手势工具，包括选择的文字，图片，链接等都能通过不同的手势进行操作。 11.UrlbarExt 内嵌在地址栏中的一个小工具，包括缩短网址，在该站点中进行搜索，查找whois信息，翻墙等众多功能。 12.迅雷的firefox支持插件 一般在Windows下安装迅雷，就不需要再安装Flashgot等插件了，迅雷本身自带firefox插件，用起来还算方便。]]></description>
			<content:encoded><![CDATA[<p>种类繁多的插件让Firefox变得异常强大，我常用的插件如下：</p>
<p>1.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/1865">Adblock Plus</a></p>
<p>网络浏览，满眼广告，交给adblock plus来解决，基本碰不到广告遮眼的情况了。</p>
<p>2.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/4925">AutoPager</a></p>
<p>国人写的自动翻页的插件，很好用，无论是google,baidu的搜索结果，还是discuz论坛，都可以自动翻页，我需要做的，仅仅是一直下拉。</p>
<p>3.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/1419">IE Tab</a></p>
<p>在Windows机器上，这个插件是必装的，有时候有些站点用firefox浏览就面目全非，或者索性不支持firefox，例如QQ空间，一键切换到IE引擎，便可以很方便的继续浏览了。</p>
<p>4.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/2410">Xmarks (formerly Foxmarks)</a></p>
<p>自动同步书签，类似的有delicious和stumbleupon，不过stumbleupon至今不支持中文，delicious也不是很美观。</p>
<p>5.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/189">GooglePreview</a></p>
<p>在google搜索结果里自动显示页面缓存图片，比较直观。</p>
<p>6.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/1122">Tab Mix Plus</a></p>
<p>标签页增强插件，功能很强大，通过鼠标简单操作就可以完成标签页的关闭，新建等等。</p>
<p>7.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/5791">Flagfox</a></p>
<p>显示当前站点IP的所在地区，很直观的就能了解到这个站点是什么国家的。</p>
<p>8.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/8782">Chromifox Basic</a></p>
<p>这个不是插件，是个主题，但是真的很清爽，在firefox上表现的很完美。</p>
<p>9.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/1146">Screengrab</a></p>
<p>截屏工具，会经常用到。</p>
<p>10.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/6639">Easy DragToGo</a></p>
<p>简单的拖拽手势工具，包括选择的文字，图片，链接等都能通过不同的手势进行操作。</p>
<p>11.<a href="https://addons.mozilla.org/zh-CN/firefox/addon/8758">UrlbarExt</a></p>
<p>内嵌在地址栏中的一个小工具，包括缩短网址，在该站点中进行搜索，查找whois信息，翻墙等众多功能。</p>
<p>12.迅雷的firefox支持插件</p>
<p>一般在Windows下安装迅雷，就不需要再安装Flashgot等插件了，迅雷本身自带firefox插件，用起来还算方便。</p>
]]></content:encoded>
			<wfw:commentRss>http://ep.pe/207/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

