0%

一般大型網站的 Web Servre log 太大,通常會以 logrotate 將 log 分割成為數個檔案。

以 Apache 為例就是像:
access_log.1、access_log.2、access_log.3 … 以此類推

另外如果使用 Load balance ,也是會產生個 log 檔,但 awstats 預設的 LogFile 是只有一個,在多個 log file 的狀態下,變成無法更新至最新的狀態,這時就要使用 awstats 內建的工具logresolvemerge.pl 來合併 log ,其實用法也很簡單,只要更改網站的設定檔就好了,以本站為例就是編輯 /etc/awstats/awstats.neo.conf

找到 LogFile 的地方,原來預設單個 log 的設定如下:

1
LogFile="/var/log/httpd/access_log"

再來就是輸入您 logresolvemerge.pl 的路徑跟 log 的路徑及萬用字元即可。

logresolvemerge.pl 是放在 awstats 安裝路徑的 tools 裡面,因為我的 awstats 是裝在/usr/local/awstats 裡面,所以完整路徑就是 /usr/local/awstats/tools/logresolvemerge.pl 。

另外我是要合併 access_log.1、access_log.2、access_log.3 的 LogFile 更改範例如下:

1
LogFile="/usr/local/awstats/tools/logresolvemerge.pl /var/log/httpd/access_log* |"

編輯存檔後,再來執行更新記錄程式即可,如:

1
#/usr/local/awstats/wwwroot/cgi-bin/awstats.pl -config=xxx -update

再來進去您的網址就可以看到合併後輸出的結果了,如:

http://www.yoursite.com/awstats/awstats.pl?config=xxx

记得周董刚出道的时候,并不喜欢他,当时搞不懂怎么会有那么多的人喜欢听他的歌,唱的”双节棍”根本不知道什么乱七八糟的。但这两年发现自己也越来越喜欢上他的歌曲了,听起来很有味道……。
现在的网络真是不得了,周董打算11月2号发行的”我很忙”全新国语专辑,现在就有泄露版了(正在听呢^-^)。
“我很忙”专辑共收入十首歌,分别是:牛仔很忙、彩虹、青花瓷、阳光宅男、蒲公英的约定、无双、我不配、扯、甜甜的、最长的电影。
刚刚听完整张专辑,一个字”炫”,主打歌”牛仔很忙”也早就做为手机铃声。不行,再重新来一遍 ……

在线试听地址:http://2046y.com/album/c3/7897.htm (PS:建议各位支持周董买正版,不然周董的Fans不答应 )

引用来自 下载地址(下载地址来自网络,所以不能保证歌曲的完整性)

http://tg200511.2046y.com/x615219i/hn/jay/27/1.wma 牛仔很忙
http://tg200511.2046y.com/x615219i/hn/jay/27/2.wma 彩虹
http://tg200511.2046y.com/x615219i/hn/jay/27/3.wma 青花瓷
http://tg200511.2046y.com/x615219i/hn/jay/27/4.wma 阳光宅男
http://tg200511.2046y.com/x615219i/hn/jay/27/5.wma 蒲公英的约定
http://tg200511.2046y.com/x615219i/hn/jay/27/6.wma 无双
http://tg200511.2046y.com/x615219i/hn/jay/27/7.wma 我不配
http://tg200511.2046y.com/x615219i/hn/jay/27/8.wma
http://tg200511.2046y.com/x615219i/hn/jay/27/9.wma 甜甜的
http://tg200511.2046y.com/x615219i/hn/jay/27/10.wma 最长的电影

安装了Adobe Photoshop CS3,在使用文字编辑工具时,可能会出现程序停止响应的情况,解决办法如下:

运行Adobe Photoshop CS3后,打开编辑-首选项-文字,取消字体预览大小前的勾选项,然后就可以了……

顺带说一句,Adobe Illustrator CS3在windows 2003下安装后,启动进行到更新字体信息90%的时候就自动退出了,目前还没有找到解决办法。

Indy Library最初是一个关于网络操作的开源程序库,可在 http://www.nevrona.com/Indy”http://indy.torry.net” 找到。这个程序库被Borland Delphi 6、 7、 C++Builder 6,以及所有 Kylix 版本所引用。

不幸的是,这个程序库被强制破解(hi-jacked)并被滥用于一些中国的spam bots中。近期所见使用“Indy Library”字串作为User Agent信息的访问,大多是这些中国“原创作品”。

是开源项目Indy的一部分,是关于网络操作的一个程序库。
爬虫信息

爬虫名称: Indy Library
HTTP User Agent:
Mozilla/3.0 (compatible; Indy Library)

抓取强度: 不一定,很多服务器上较少出现,但也有部分服务器被大量访问
搜索引擎推广效果:无!
来访IP:无规律,很杂乱

对Indy Library爬虫进行控制
Indy Library只是一个程序库,很多使用它的用户并不遵循robots.txt抓取规范,可能抓取你服务器上声明禁止访问的内容!。如果此类爬虫对您的服务器造成困扰,您可以:

  • 用服务器防火墙屏蔽相关访问
  • 用.htaccess屏蔽相关访问
  • 在程序中进行相关检测和屏蔽

参考资料
官方网站
http://www.indyproject.org/ 关于Indy Library项目的官方信息

Microsoft VBScript语法错误(0x800A03E9)–>内存不足
Microsoft VBScript语法错误(0x800A03EA)–>语法错误
Microsoft VBScript语法错误(0x800A03EB)–>缺少 ‘:’
Microsoft VBScript语法错误(0x800A03ED)–>缺少 ‘(‘
Microsoft VBScript语法错误(0x800A03EE)–>缺少 ‘)’
Microsoft VBScript语法错误(0x800A03EF)–>缺少 ‘]’
Microsoft VBScript语法错误(0x800A03F2)–>缺少标识符
Microsoft VBScript语法错误(0x800A03F3)–>缺少 ‘=’
Microsoft VBScript语法错误(0x800A03F4)–>缺少 ‘If’
Microsoft VBScript语法错误(0x800A03F5)–>缺少 ‘To’
Microsoft VBScript语法错误(0x800A03F6)–>缺少 ‘End’
Microsoft VBScript语法错误(0x800A03F7)–>缺少 ‘Function’
Microsoft VBScript语法错误(0x800A03F8)–>缺少 ‘Sub’
Microsoft VBScript语法错误(0x800A03F9)–>缺少 ‘Then’
Microsoft VBScript语法错误(0x800A03FA)–>缺少 ‘Wend’
Microsoft VBScript语法错误(0x800A03FB)–>缺少 ‘Loop’
Microsoft VBScript语法错误(0x800A03FC)–>缺少 ‘Next’
Microsoft VBScript语法错误(0x800A03FD)–>缺少 ‘Case’
Microsoft VBScript语法错误(0x800A03FE)–>缺少 ‘Select’
Microsoft VBScript语法错误(0x800A03FF)–>缺少表达式
Microsoft VBScript语法错误(0x800A0400)–>缺少语句
Microsoft VBScript语法错误(0x800A0401)–>语句未结束
Microsoft VBScript语法错误(0x800A0402)–>缺少整型常数
Microsoft VBScript语法错误(0x800A0403)–>缺少 ‘While’ 或 ‘Until’
Microsoft VBScript语法错误(0x800A0404)–>缺少 ‘While’, ‘Until’ 或语句未结束
Microsoft VBScript语法错误(0x800A0405)–>缺少 ‘With’
Microsoft VBScript语法错误(0x800A0406)–>标识符过长
Microsoft VBScript语法错误(0x800A0407)–>无效数字
Microsoft VBScript语法错误(0x800A0408)–>无效字符
Microsoft VBScript语法错误(0x800A0409)–>未结束的字符串常量
Microsoft VBScript语法错误(0x800A040A)–>注释未结束
Microsoft VBScript语法错误(0x800A040D)–>无效使用 ‘Me’ 关键字
Microsoft VBScript语法错误(0x800A040E)–>’loop’ 语句缺少 ‘do’
Microsoft VBScript语法错误(0x800A040F)–>无效的 ‘exit’ 语句
Microsoft VBScript语法错误(0x800A0410)–>循环控制变量 ‘for’ 无效
Microsoft VBScript语法错误(0x800A0411)–>名称重定义
Microsoft VBScript语法错误(0x800A0412)–>必须是行中的第一个语句
Microsoft VBScript语法错误(0x800A0413)–>不能为 non-ByVal 参数赋值
Microsoft VBScript语法错误(0x800A0414)–>调用子程序时不能使用括号
Microsoft VBScript语法错误(0x800A0415)–>缺少文字常数

Read more »

  • .tar
    解包:tar xvf FileName.tar
    打包:tar cvf FileName.tar DirName
    (注:tar是打包,不是压缩!)

  • .gz
    解压1:gunzip FileName.gz
    解压2:gzip -d FileName.gz
    压缩:gzip FileName

  • .tar.gz
    解压:tar zxvf FileName.tar.gz
    压缩:tar zcvf FileName.tar.gz DirName

  • .bz2
    解压1:bzip2 -d FileName.bz2
    解压2:bunzip2 FileName.bz2
    压缩: bzip2 -z FileName

  • .tar.bz2
    解压:tar jxvf FileName.tar.bz2
    压缩:tar jcvf FileName.tar.bz2 DirName

  • .bz
    解压1:bzip2 -d FileName.bz
    解压2:bunzip2 FileName.bz
    压缩:未知

  • .tar.bz
    解压:tar jxvf FileName.tar.bz
    压缩:未知

  • .Z
    解压:uncompress FileName.Z
    压缩:compress FileName

  • .tar.Z
    解压:tar Zxvf FileName.tar.Z
    压缩:tar Zcvf FileName.tar.Z DirName

  • .tgz
    解压:tar zxvf FileName.tgz
    压缩:未知

  • .tar.tgz
    解压:tar zxvf FileName.tar.tgz
    压缩:tar zcvf FileName.tar.tgz FileName

  • .zip
    解压:unzip FileName.zip
    压缩:zip FileName.zip DirName

  • .rar
    解压:rar a FileName.rar
    压缩:rar e FileName.rar
    rar请到:http://www.rarsoft.com/download.htm 下载!
    解压后请将rar_static拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
    [root@www2 tmp]# cp rar_static /usr/bin/rar

  • .lha
    解压:lha -e FileName.lha
    压缩:lha -a FileName.lha FileName
    lha请到:http://www.infor.kanazawa-it.ac.jp/~ishii/lhaunix/下载!
    解压后请将lha拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
    [root@www2 tmp]# cp lha /usr/bin/

  • .tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha .lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
    解压:sEx x FileName.*
    压缩:sEx a FileName.* FileName
    sEx只是调用相关程序,本身并无压缩、解压功能,请注意!
    sEx请到:http://sourceforge.net/projects/sex 下载!
    解压后请将sEx拷贝到/usr/bin目录(其他由$PATH环境变量指定的目录也可以):
    [root@www2 tmp]# cp sEx /usr/bin/

参考文献:Linux 文件压缩工具指南
(其实看帮助是最好的方法,一般各个命令都可以用“–help”参数得到常用使用方法!)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<HTML>
<HEAD>
<TITLE>outlook菜单</TITLE>
<META http-equiv=content-type content=text/html;charset=gb2312>
<style>
.outlook-title
{
border:1px outset;
background-color:buttonface;
color:black;
text-align:center;
cursor:hand;
font-size:9pt;
}
.outlook-item
{
padding:2px;
font-size:9pt;
}

a.outlook-item:hover
{
color:blue;
}
</style>
</HEAD>
<BODY style="MARGIN: 0px" text=black vLink=white aLink=white link=white scroll=no>
<table height="100%" width="100%" border=0 cellpadding=0 cellspacing=0>
<tr><td width="140″>
<TABLE style="WIDTH: 140px; HEIGHT: 100%" cellSpacing=0 cellPadding=0 bgColor=#aca899 border=1 hspace="0″ vspace="0″>
<TR>
<TD id=outLookBarShow style="HEIGHT: 100%" align=middle name="outLookBarShow">
<div id="o1″ style="height:100%;"></div>
</td>
</tr>
</table>
</td><td><iframe id="frm" name="frm" width="100%" height="100%" frameborder=0></iframe></td></tr>
</table>

<SCRIPT LANGUAGE="JavaScript">
<!–
/**//*
** ==================================================================================================
** 类名:CLASS_OUTLOOKBAR
** 功能:OUTLOOK菜单
** 示例:
—————————————————————————————————

var o = new CLASS_OUTLOOKBAR();
o.addTitle("工作安排");
o.addTitle("通告信息");
o.addTitle("管理制度");
o.addTitle("系统管理");

o.addItem(0,"今日安排","frm","http://www.google.com");
o.addItem(0,"工作任务","frm","http://baidu.com");

o.addItem(1,"报社通知","frm","http://www.itpub.net/forum6.html",null);

o.setupById("o1″);

//定义需要安装的DIV
<div id="o1″ style="height:100%;"></div>

—————————————————————————————————
** 作者:ttyp
** 邮件:ttyp@21cn.com
** 日期:2005-12-1
** 版本:0.2
** ==================================================================================================
*/
function CLASS_OUTLOOKBAR(id,name)
{
var THIS1 = this;

this.id = getUnique(id);
this.name = getUnique(name);
this.width = "140";
this.height = "100%";
this.titles = new Array();

function getUnique(p){
if(p!=null){
return p;
} else {
return "outlook_" + new Date().getTime() + "_";
}
}

this.addTitle = function(name){

function title(name){
var THIS2 = this;
this.name = name;
this.items = new Array();

this.addItem = function(name,target,url,image,align){

function item(name,target,url,image,align){
this.name = name;
this.image = image;
this.target = target;
this.url = url;
this.align = align;
}

var _item = new item(name,target,url,image,align);
THIS2.items[THIS2.items.length] = _item;
return _item;
}
}

var _title = new title(name);
this.titles[this.titles.length] = _title;
return _title;
}

this.step = 4;
this.speed = 10;
this.selectedIndex = 0;
this.timer = 0;
this.rate = 100;
this.run = false;
this.wait = new Array();

this.select = function(index){
if(this.selectedIndex!=index){
if(this.run==false){
this.rate = 100;
this.run = true;
this.timer = window.setInterval(function(){

THIS1.rate-= THIS1.step;
var oldI = document.getElementById(THIS1.id + THIS1.selectedIndex).nextSibling;
var newI = document.getElementById(THIS1.id + index).nextSibling;

var ooI = oldI.childNodes[0].childNodes[0];
var nnI = newI.childNodes[0].childNodes[0];

oldI.style.display = "";
newI.style.display = "";

if(THIS1.rate<0){
window.clearInterval(THIS1.timer);
THIS1.timer = 0;
ooI.style.overflow="auto";
nnI.style.overflow = "auto";
oldI.style.display = "none";
THIS1.run = false;
THIS1.selectedIndex = index;
if(THIS1.wait.length>0){
THIS1.select(THIS1.wait[0]);
THIS1.wait = THIS1.wait.slice(1,-1);
}
} else {
ooI.style.overflow = "hidden";
nnI.style.overflow = "hidden";
oldI.style.height = THIS1.rate +"%";
newI.style.height = (100 - THIS1.rate) + "%";
}

},this.speed);
}else{
this.wait[this.wait.length] = index;
}
}
}

this.setup = function(contain){
if(contain!=null){
var table = document.createElement("table");
table.style.width = "100%";
table.style.height = "100%";
table.cellPadding = "0px";
table.cellSpacing = "0px";
table.style.border = "0px solid red";
table.bgColor = "#aca899";

function getItem(width,height,display,title){
var tris = document.createElement("tr");
var tdis = document.createElement("td");
tdis.style.width = width;
tris.style.height = height;
tris.style.display = display;
tdis.className = "outlook-item";
tdis.style.verticalAlign = "top";

if(title!=null&&typeof(title.items)!="undefined"){

var vv = document.createElement("div");
vv.style.overflow = "auto";
vv.style.height = "100%";
vv.style.width = "100%";

for(var i=0;i<title.items.length;i++){
var div = document.createElement("div");
div.style.textAlign = "center";
div.style.height = "24px";
div.style.paddingTop = "4px";

if(title.items[i].image!=null){
var img = document.createElement("img");
img.src = title.items[i].image;
div.appendChild(img);
if(typeof(title.items[i].align)!="undefined"&&title.items[i].align==1){
var lbl = document.createElement("label");
lbl.innerHTML = "<br>";
div.appendChild(lbl);
}
}

var a = document.createElement("a");
a.target = title.items[i].target;
a.innerHTML = title.items[i].name;
a.href = title.items[i].url;
div.appendChild(a);
vv.appendChild(div);
}

tdis.appendChild(vv);
}

tris.appendChild(tdis);
return tris;
}

for(var i=0;i<this.titles.length;i++){
var tr = document.createElement("tr");
var td = document.createElement("td");

tr.style.height = "25px";
td.style.width = "100%";
td.className = "outlook-title";

td.innerHTML = this.titles[i].name;
tr.id = this.id + i;

tr.appendChild(td);
table.appendChild(tr);

if (i==this.selectedIndex){
var tris = getItem("100%","100%","",this.titles[i]);
table.appendChild(tris);
} else {
var tri = getItem("100%","0%","none",this.titles[i]);
table.appendChild(tri);
}

}

if(typeof(contain.outerHTML)=="undefined"){
contain.appendChild(table);
} else {
contain.innerHTML = table.outerHTML;
}

//bind event
for(var i=0;i<this.titles.length;i++){
var title = document.getElementById(this.id + i);
if(title){
function mapping(index){
try {
title.onclick = function(){THIS1.select(index);}
title.oncontextmenu = function(){ return false;}
title.nextSibling.oncontextmenu = function(){return false;}
} catch (e){
}
}
mapping(i);
}
}
}
}

this.addItem = function(index,name,target,url,image,align){
if(index>=0&&index<this.titles.length){
return this.titles[index].addItem(name,target,url,image,align);
}
}

this.setupById = function(id){
var d = document.getElementById(id);
if(d){
this.setup(d);
}
}
}

var o = new CLASS_OUTLOOKBAR();
o.addTitle("工作安排");
o.addTitle("通告信息");
o.addTitle("管理制度");
o.addTitle("系统管理");

o.addItem(0,"今日安排","frm","http://www.google.com");
o.addItem(0,"工作任务","frm","http://baidu.com");

o.addItem(1,"报社通知","frm","http://www.itpub.net/forum6.html",null);

o.setupById("o1");

//–>
</SCRIPT>

</BODY>
</HTML>

下面主要说说怎么在 OGame 中使用本地外观。使用本地外观可以尽量少的从服务器上下载数据,所以在刷新游戏界面的时候会快很多。首先去下载一个 OGame 的外观,OGame 游戏设置中,设置外观地址的地方就有下载页面的链接。当然如果觉得官方提供的不好看的话,可以去网上搜索一下,有很多个人制作的外观下载。

将外观下载下来后,解压到某个文件夹中。个人建议文件夹路径中不要有中文不要有空格等特殊字符。比如我解压的地址是 G:\ogame\evolution\ 这样一个路径()也就是外观文件夹中 formate.css 这个文件所在的路径。

如果你使用的是IE,直接按游戏提示填入地址就可以。我们这里主要讲讲 Firefox 的设置。Firefox 从1.5版本以后,由于安全性的考虑,对本地文件读取进行了限制,导致使用 Firefox 加载本地文件会遇到一些问题。那么让我们来解决这个问题吧,解决的方法就是对 Firefox 进行一些设置。

网上很多 Firefox 的调用本地外观的设置方法都是针对1.5版本的,但是用在2.0版本的时候会有些问题。我这里给出的方法是针对2.0版本的。首先,打开你的 Firefox,我用作测试的是2.0.0.1版本。在地址栏中输入 about:config 然后回车。这时会打开一个设置的列表,在列表的任意位置点击右键,选择“新建”-“字符串”,分别输入如下三个名称和值:

  • 名称:capability.policy.localfilelinks.checkloaduri.enabled 值:allAccess
  • 名称:capability.policy.localfilelinks.sites 值:http://222.73.247.132
  • 名称:capability.policy.policynames 值:localfilelinks

需要注意一下的是第二个值。这个不一定要输入我提供的,这个应该是你所玩游戏的服务器地址。比如说你玩台湾的服务器,这个值就会不一样。如何得到适合自己的值呢?在你游戏里随意查看一个链接的属性,复制其链接地址总前面的那一段就可以了。如果你玩多个服务器的游戏,可以在那个值中输入多个地址,中间用空格分隔即可。还有就是添加的新值你可能在列表中看不到,但没有关系,这是正常的。如果不确认自己是否添加成功,可以打开 X:\Documents and Settings\用户名\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\prefs.js(X表示你的系统盘符,用户名表示你使用的 Windows 登录用户名,xxxxxxxx是个随机字符)这个文件来找找是不是有如下内容:

user_pref(“capability.policy.localfilelinks.checkloaduri.enabled”, “allAccess”);
user_pref(“capability.policy.localfilelinks.sites”, “http://222.73.247.132");
user_pref(“capability.policy.policynames”, “localfilelinks”);

里面的条目都是按字母顺序排列的,很容易找到。

这个设置完毕后,预示着你马上要成功了。关掉 Firefox 后再打开,这时登录游戏,到游戏选项中的外观路径里输入如下内容:’file://g:/ogame/evolution/‘

注意按照你的路径进行修改,同时注意前面的file://和最后的/,以及斜杠的方向。然后点击保存,退出游戏重新登录。OK,你应该已经成功了。

对于目前 OGame 会有外观加载不完全,部分地方显示白版问题,可以把你下载的外观文件中 formate.css 这个文件在其文件夹中复制一个,重命名为 formate_asia.css 即可解决。

FireFox 提速

使用本地皮肤的话,会明显加快游戏页面访问速度。不过我们还希望 Firefox 更快,不光在 OGame 中,在浏览其他网页的时候也能快一些。按照我下面提供的这种方法,可能会有些效果。

首先,还是在 Firefox 地址栏中输入 about:config 然后回车,打开设置列表。找到 network.http.pipelining 这项,双击编辑,修改其值为 ture 。找到 network.http.pipelining.maxrequests 这项,将其值修改的稍微大一些,比如 30,这样可以使 Firefox 每次发送30个请求。然后再新建一个 nglayout.initialpaint.delay 的项,设置其值为 0,这样可以使 Firefox 在收到网站信息后更快的反映。关闭 Firefox 后再试试看吧,应该会提高很多浏览速度的。

去 Google 广告

有时候,Google Adsense 的广告会影响我们打开网页的速度,尤其是在 OGame ,Google Adsense 的放置确实很讨厌。我们可以通过如下手段去掉它。

如果你使用的是 IE,可以把 http://*.googlesyndication.com/pagead/show_ads.js 这个地址添加入 IE 的不信任地址列表。

如果你使用的是 Firefox,可以去下载安装一个 Adblock Plus 来用,同样将上述地址添加进过滤地址中,这样你的浏览器中就不会再显示 Google Adsense 的广告了。相当推荐使用 Adblock Plus,你还可以用它来过滤各种其它广告,只要将你不想要的广告添加进过滤地址,你就不会再看到它了。可以过滤很多种广告呢。想要恢复的话,把过滤地址中的对应条目删除就可以了。

打开firefox文件夹根目录下的res目录,记事本打开“ viewsource.css ”文件,将里面的:

1
2
3
4
5
6
#viewsource {
font-family: -moz-fixed;
font-weight: normal;
color: black;
white-space: pre;
}

替换成

1
2
3
4
5
6
7
#viewsource {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: normal;
color: black;
white-space: pre;
font-size: 12px;
}

打开firefox,地址栏输入 about:config
右键新建一个字符串,名为 browser.bookmarks.file
然后输入字串值为“新路径名\书签文件名”即可。比如 D:\My bookmarks\bookmarks.html