单位的笔记本操作系统为英文版的Windows XP。用Firefox阅读中文网页时,字体看起来很别扭。在系统中添加了微软的雅黑字体,想让Firefox显示中文网页时默认使用雅黑字体,需要修改一下字体设置。有一个变量font.name.serif.x-western,默认的值为“time new roman”,把它的值改为“Microsoft YaHei”后,中文网页的字体看起来就好多了。
2007-11-25
2007-09-02
Firefox插件列表
今天是在大学工作的最后一天了,需要的数据都备份完了。我的机器ge2pc51里Firefox中安装的插件也在此罗列一下。列表是由listZilla插件生成的:
Adblock Plus 0.7.5.1
Aptana Debugger Service 0.2.8.14433
CHM Reader 0.2.1.1
CSSViewer 1.0.2
del.icio.us 1.2.1
ErrorZilla 0.2
Firebug 1.05
Full Screen 0.5
Fullerscreen 2.02
Google Notebook 1.0.0.18
Google Toolbar for Firefox 3.0.20070525W
Greasemonkey 0.7.20070607.0
Html Validator 0.8.4.0
Java Console 6.0
ListZilla 0.8
Live HTTP Headers 0.13.1
LiveClick 0.2.4
Right Encoding 0.2.2
ScrapBook 1.2.0.8
Searchbar Autosizer 1.3.7
SwitchProxy Tool 1.4.1
View Cookies 1.6
Web Developer 1.1.4
XML Developer Toolbar 0.2
2007-08-09
Firefox的插件LiveClick
如果使用Firefox的Live Bookmarks功能,那么这个名为LiveClick的插件能够提供更方便的功能,如显示某个post是否已经阅读,监视feed更新等等。
2007-07-18
使用Firebug
Firefox的插件Firebug对于开发调试网页实在太有帮助了。用F12就可以激活Firebug,默认在网页下端显示。我常用control + F12在新窗口中打开Firebug,这样在左边的主显示器上显示网页,在右边的副显示器上显示Firebug的窗口。这样在使用inspect功能时可以很方便的看到对应元素的代码。查看更多Firebug的快捷键。
在使用console功能时,如果选中了larger command line,Firebug为输入javascript提供的类似vim中设置选项一样的自动补全功能不可用。当在javascript的console提示符>>>后复制一段javascript代码时,larger command line会自动被激活。
在Firebug功能选择的上面一行选中一个元素,右键可以激活Log Events选项。这样可以在console查看事件输出。
有了Firebug不用去W3C查看CSS中的box model了。选中html,选定元素,再选中右边的Layout tab,就可以看到元素的box布局了。
当Firefox加载的网页包含多个frames时,Firebug默认的context是top-level的页面,如何切换context到其中的一个frame呢?
答案:
cd(window)
By default, command line expressions are relative to the top-level window of the page. cd() allows you to use the window of a frame in the page instead.
在command line下的常用函数:
$(id)
Returns a single element with the given id.
$$(selector)
Returns an array of elements that match the given CSS selector.
$x(xpath)
Returns an array of elements that match the given XPath expression.
用于输出日志的函数:
console.debug("message" [,objects]) - Logs a debug message.
console.info("message" [,objects]) - Logs an informative message.
console.warn("message" [,objects]) - Logs a warning.
console.error("message" [,objects]) - Logs an error.
2007-07-05
Firefox的插件:fullscreen 与 fullerscreen
Firefox下的插件多多,在http://addons.mozilla.org/页面下用关键字fullscreen查找会找到名为Fullscreen的插件。不过其实还有一个实现全凭效果更好的插件,名为fullerscreen。后者能隐藏所有的菜单栏和工具栏,增加了不少可视面积。
2007-06-29
Firefox的Smart Keywords功能
2007-04-25
在Firefox下阅读chm文件
2007-04-15
禁止Firefox窗口被改变大小
浏览有些网页时,有些脚本会改变浏览器的窗口大小,很是烦人。通过下面的设置可以禁止窗口大小被改变:
Here is how to prevent sites from resizing your Firefox window…
1. Open Firefox, Preferences (or if you’re on Windows…Tools, Options)
2. Go to the Content Tab
3. To the right of “Enable Javascript” hit “Advanced…”.
4. Uncheck “Move or Resize Existing Windows”
2007-04-11
Firefox扩展:LiveHttpHeaders
另外在Tomcat的邮件列表中名为Christ写了一段很好的关于在搜索中使用jsessionid的问题:
> Is there anyway to create JSessionIDs per window rather than per browser?
> I am having the problem of when you open multiple tabs within
> a browser, and enter two simultaneous queries, the results returned are
> corrupted. Any suggestions? Thanks for the help.
I have an application that allows the user to perform searches and paginate through the results. Since the search really only needs to be performed once, pagination can be as simple as picking a segment of the results (stored in the session) and displayed on the screen.
I store the query that was performed as well as a "token" which is generated when the query is created. I place this token in all of the URLs on the page (most importantly, the ones involved with pagination).
If a request comes into the server including a token, I check the token against what I have in the session. If the tokens match, I skip the search. If they do not match, I re-run the search and re-set the token. Rinse, repeat.
In your case, you might want multiple simultaneous paginating queries, though I'm not exactly sure why. You could adopt a similar approach using a List of queries (using the same session key, I would imagine),
each with separate tokens for the windows.
The only problem with an implementation like this is that it is very hard to decide when you are "finished" with a query, and that it's okay to purge it from the session. That is left as an exercise for the reader
;)
Hope that helps,
-chris
2006-07-06
用firefox访问非常规port的网页
This address is restricted
This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.
后来在google上找到了解决办法:
The only way to fix this problem is to add a new variable to Firefox's configuration.
You do this by:
1. Entering about:config in the URL bar.
2. Right click the list that is displayed and choose New->String
3. Enter network.security.ports.banned.override as the name of the new string and click ok.
4. Enter the ports you want allowed, seperated by commas (like: "101,800,5000"). Click OK.
2006-03-22
我使用的firefox插件
1. Adblock Plus
先前使用adblock,后来发现了Adblock Plus便一直使用它了。它能当掉你不想看到的各种广告,图片,flash,frame页面,支持正则表达式,强大无比!
2. Web Developer
对于开发和调试网页(如CSS,Javascript)非常的方便
3. Scrapbook
能非常方便的保存一个网页和网页内的链接,包括mp3(哈哈,这下可方便下在mp3),pdf,jpg等
4. google toolbar for firefox
虽然firefox已经自带了搜索工具,但还是忍不住要安装这个插件,查询关键词的提示功能,Autofill等功能让人爱不释手!
5. Auto Copy
功能很简单,就是当选中文字的时候,自动把文字复制到粘贴板,很实用!
6. Performancing
这是新近发现的,针对所谓高产量的blogger的。虽然我不是常写blog,但是有了它写blog方便极了!
虽然firefox存在内存泄漏的问题,但是有这么好用的插件为什么不用firefox呢,多用一点内存也无妨了。