显示标签为“firefox”的博文。显示所有博文
显示标签为“firefox”的博文。显示所有博文

2007-11-25

修改Firefox的字体设置

单位的笔记本操作系统为英文版的Windows XP。用Firefox阅读中文网页时,字体看起来很别扭。在系统中添加了微软的雅黑字体,想让Firefox显示中文网页时默认使用雅黑字体,需要修改一下字体设置。有一个变量font.name.serif.x-western,默认的值为“time new roman”,把它的值改为“Microsoft YaHei”后,中文网页的字体看起来就好多了。

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功能

Firefox有个叫做Smart Keywords的功能很 方便,但很少人用到。用户在一个搜索网面页内的搜索框内右击鼠标,就会出现一个add a keyword for this search选项。点击后就会弹出一个添加到Bookmarks的对话框,填入在Bookmarks中显示的名字,并选择一个关键字。如常常查找学校内的 电话号码,每次都需打开页面http://www.uni-trier.de/uni/telefon.html,在输入名字。现在我为这个查找定义了一个关键字,fon,这样我只需在浏览器地址栏里输入 fon searchitem。这样返回的页面就是要查找的结果。

2007-04-25

在Firefox下阅读chm文件

Firefox借助插件chm reader可以打开chm格式的文件。这个插件以前的版本还只支持Linux下的Firefox,不过现在的版本已经支持Windows下运行的Firefox了。不少chm文件都不提供放大或缩小字体的功能。要修改chm中字体的大小必须借助修改IE中的字体大小来完成,更为麻烦的是修改完IE中的字体大小后还必须关掉chm文件重新打开chm文件才能生效。现在有了chm reader方便多了。

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

Firefox数目众多,功能丰富的扩展真好。今天测试联邦档案馆会议记录的搜索功能时多亏有了LiveHttpheaders才发现我的问题在于提交request时,header里没有包括jessionid这个变量,所以搜索的结果分页问题不能解决。

另外在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的网页

今天为装zuccaro,随便选择了一个端口6000,用IE和Opera访问都没有问题,但是没想到用firefox访问时却得到提示:
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插件

从Firefox 1.0开始使用,现在已经升级到了1.5的版本了,2.0alpha也已经发布了。使用了不少的插件,但是最喜欢的插件还是下面所列:
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呢,多用一点内存也无妨了。

2005-09-09

抢先测试Firefox 1.5 beta

今天因为上午有考试,所以早上很早就起来了。照例打开了电脑看了看slashdotcn.org,看到Firefox 1.5beta放出来了,于是赶紧下载了一个。考完试回到家便坐到电脑前测试。安装完毕后发现外观没有太多更改,但是在option里除了选项布局有了改变外,有了一些新的设置选项,是关于accessibility设置的。在1.5 beta的新功能中最让我感兴趣的是对Web协议的更好支持,包括SVG, CSS 2 and CSS 3, and JavaScript 1.6。