<?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>Fiorano bloG &#187; Bookmarklet</title>
	<atom:link href="http://www.gtalkme.com/tag/bookmarklet/feed" rel="self" type="application/rss+xml" />
	<link>http://www.gtalkme.com</link>
	<description>fiorano的个人博客, 逮着什么写什么.</description>
	<lastBuildDate>Sat, 06 Mar 2010 13:48:45 +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>利用Bookmarklet改变Firefox的窗口大小</title>
		<link>http://www.gtalkme.com/share-web/resize-firefox-window-with-bookmarklet.html</link>
		<comments>http://www.gtalkme.com/share-web/resize-firefox-window-with-bookmarklet.html#comments</comments>
		<pubDate>Sat, 09 Feb 2008 13:39:10 +0000</pubDate>
		<dc:creator>fiorano</dc:creator>
				<category><![CDATA[分享网络]]></category>
		<category><![CDATA[Bookmarklet]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ToolBar]]></category>

		<guid isPermaLink="false">http://www.gtalkme.com/share-web/resize-firefox-window-with-bookmarklet.html</guid>
		<description><![CDATA[什么是Bookmarklet？简单地说，就是把一段特定功能的JavaScript代码保存至收藏夹，当你需要的时候点击这个收藏快捷方式，实现这段JavaScript代码的功能。因为现在的浏览器地址栏都支持JavaScript，... ]]></description>
			<content:encoded><![CDATA[<p>什么是Bookmarklet？简单地说，就是把一段特定功能的JavaScript代码保存至收藏夹，当你需要的时候点击这个收藏快捷方式，实现这段JavaScript代码的功能。因为现在的浏览器地址栏都支持JavaScript，所以使用Bookmarklet可以方便的实现你常用到的功能。</p>
<p>在Wikipedia上是这样的<a href="http://en.wikipedia.org/wiki/Bookmarklet" target="_blank">解释</a>：</p>
<blockquote><p>A bookmarklet is an applet, a small computer application, stored as the URL of a bookmark in a web browser or as a hyperlink on a web page. Whether bookmarklet utilities are stored as bookmarks or hyperlinks, they are designed to add one-click functionality to a browser or web page. When clicked, a bookmarklet performs some function, one of a wide variety such as a search query or data extraction. Usually the applet is a JavaScript program.</p>
</blockquote>
<p><span id="more-347"></span></p>
<p>由于我的电脑是宽屏，特别是在有NBA转播的时候，常常会把Firefox的窗口变小，一边看比赛一边上网看新闻。而每次都用鼠标去拖拽改变大小很不方便。现在利用Bookmarklet可以很方便的实现。</p>
<p>1. 新建一个收藏。</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="110" alt="image" src="http://www.gtalkme.com/wp-content/uploads/2008/02/image2.png" width="204" border="0"></p>
<p>2. 在收藏的属性里填入：</p>
<ul>
<li><strong>Name</strong>: 你自己取个名字，例如800&#215;600.
<li><strong>Location</strong>: 填入代码： <em><strong>javascript:window.resizeTo(800,600)</strong></em>&nbsp;</li>
</ul>
<p><em>Keywords</em> 和<em>Description</em> 可以留空。</p>
<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="273" alt="image" src="http://www.gtalkme.com/wp-content/uploads/2008/02/image3.png" width="371" border="0"></p>
<p>接下来的事情就很简单了，你只需要单击收藏夹上的这个快捷方式，就可以把Firefox窗口改变成指定大小了。想设置成其他的大小，只需要修改<em><strong>(800,600)</strong></em> 这两个数字就行了。</p>
<p>另外，如果你想改变网页的字体，只需要按照上面的方法，而把JavaScript代码替换成：</p>
<p><strong><em>javascript:void(document.body.style.fontFamily=&#8217;宋体&#8217;)</em></strong></p>
<p><strong>PS:</strong>有些人可能和我一样不喜欢使用Firefox的 Bookmarks Toolbar，其实很简单，先按照上面的步骤添加，然后在工具栏上右键自定义，把这几个Bookmarklet拖拽至其他地方，再关闭Bookmarks Toolbar就行了！</p>
<img src="http://www.gtalkme.com/?ak_action=api_record_view&id=347&type=feed" alt="" /><ul class="related_post"><li><a href="http://www.gtalkme.com/google/google-chrome-beta-launch.html" title="Google Chrome,你还差得远呢">Google Chrome,你还差得远呢</a></li><li><a href="http://www.gtalkme.com/share-web/firefox-35-launched.html" title="我眼中的Firefox 3.5">我眼中的Firefox 3.5</a></li><li><a href="http://www.gtalkme.com/google/google-toolbar5-for-firefox.html" title="Google 工具栏第5版 for Firefox">Google 工具栏第5版 for Firefox</a></li><li><a href="http://www.gtalkme.com/google/google-toolbar-for-firefox-3.html" title="Google Toolbar for Firefox 3">Google Toolbar for Firefox 3</a></li><li><a href="http://www.gtalkme.com/share-web/get-firefox-download-day-certificate.html" title="获取Firefox 3下载日记录证书">获取Firefox 3下载日记录证书</a></li><li><a href="http://www.gtalkme.com/share-web/are-you-readyfor-firefox3.html" title="June 18 2008 at 1:00 AM,准备好了吗?">June 18 2008 at 1:00 AM,准备好了吗?</a></li><li><a href="http://www.gtalkme.com/google/google-browser-sync-discontinued-firefox-3-support.html" title="Google Browser Sync停止开发支持Firefox 3的版本">Google Browser Sync停止开发支持Firefox 3的版本</a></li></ul><hr />
<p><small><a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/deed.zh">©</a> <a href="http://www.gtalkme.com">Fiorano Blog</a> | <img src="http://www.gtalkme.com/wp-content/logo/feedburner-16x16.png" alt="Subscribe Google Burned Feed" /><a href="http://feeds.gtalkme.com/Fioranoblog">FeedBurner</a> | <img src="http://www.gtalkme.com/wp-content/logo/feedsky-16x16.png" alt="Subscribe FeedSky Burned Feed" /><a href="http://feed.gtalkme.com">FeedSky</a> | <a href="http://www.gtalkme.com/share-web/resize-firefox-window-with-bookmarklet.html">Permalink</a> | <a href="http://www.gtalkme.com/share-web/resize-firefox-window-with-bookmarklet.html#comments">2 comments</a> | <a href="http://twitter.com/fiorano" target="_blank"><img alt="Twitter @fiorano" src="http://www.gtalkme.com/wp-content/logo/twitter-button-16x16.png" /> </a><br/></small></p>]]></content:encoded>
			<wfw:commentRss>http://www.gtalkme.com/share-web/resize-firefox-window-with-bookmarklet.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
