Monday, 26. December 2005, 15:25:46
[整理]新手上路指南
写给和我一样才用Opera不久的朋友,希望能有所帮助。*************************************************************************************************
1、界面文字显示大小的问题
运行Opera中文版后,是不是发现有的字体很小,显示不正常呢?没有关系,工具——首选项——字体,将最小字体像素设置为12,如果还有不对的地方,设置里面所有的字体为宋体就行了。
2、编码问题
是不是有的网页显示为乱码呢? 首选项——常规——详细信息,对没有指定编码的网页应用的编码,设置为gbk。
3、在右键菜单增加“编码”项目
有时候还是需要自己切换编码,使用菜单显然不方便,在右键菜单中增加一个编码的选项就很方便了。
查找standard_menu.ini这个文件,找到其中的[Document Popup Menu],在下面添加如下内容:
Submenu, 70233, My Encoding Menu =
[My Encoding Menu]
Item, 51750 = Set encoding, ""
--------------------1
Item, 67453 = Set encoding, "gb18030"
Item, 51782 = Set encoding, "gbk"
Item, 51780 = Set encoding, "big5"
Item, 51751 = Set encoding, "utf-8"
Item, 51779 = Set encoding, "iso-2022-jp"
保存后重新运行Opera就行了。
4、删除不需要的右键菜单和主菜单项目
有的项目是我们不喜欢用的,比在“在新窗口中打开”和“在后台窗口打开”等等(注意,不是在新的标签中打开)。打开Opera安装目录下面的Zh_CN.lng文件(可能名字不一样,但是后缀是lng),查找想要删除的项目名称,比如查找“在新窗口中打开”,我们可以找到一段文字“68009="在新窗口中打开"”,现在再打开standard_menu.ini,查找68009,删除包含68009的那一行即可。同理,可以删除"在后台窗口中打开"这个项目,代码是68010。
5、广告过滤
(1)在Opera的安装目录下新建一个filter.ini文件,我的文件内容如下:
; filter.ini
; This file is part of the Opera Browser.
[prefs]
prioritize excludelist=1
[include]
*
[exclude]
http://ad.*
http://www.139flash.com/*
http://*.ad.*
http://*/ad.*
http://*.unionsky.*
http://*.ad-*
http://*.ad.*
http://*/ad/*
http://*/ads/*
http://*/adview.*
http://*/banner/*
http://*/Ggao/*
http://*/adspic/*
http://www.booksky.biz/tom.aspx
http://www.skycn.com/popup_index.htm
http://www.skycn.com/images/ads*.gif
http://www.139flash.com/*
http://ww*.skycn.com/tuijianimg/*
http://www.adkey.cn/*
http://sogou.com/cpc/*
http://*/js/*
http://*adsence.sogou.com/*
http://cpro.baidu.com/cpro/*
http://*hotadv.com/*
http://*union*.*kingsoft.com/*
http://*pagead*.googlesyndication.com/*
http://*/gg/*
http://bbs3.btbbt.com/images/space.gif
http://bbs1.btbbt.com/bbs1.gif
http://*.yieldmanager.com/*
http://www.redcross.org/*
http://*/banner/*
http://banner.*
http://www.booksky.biz/pop.aspx
http://*.114.com.cn/*
http://*/banners/*
http://*.swf*
http://www.bbs9.net/*
http://www.mylead.cn/*
http://ad*.*.*/*
http://www.haosf.com/*
http://*/adpics/*
http://www.lc165.com/*
http://*.ads*.*/*
http://bbs*.btbbt.com/baidu.htm
http://www.btbbt.com/ty.htm
http://bbs*.btbbt.com/WaitAd.js
http://bbs*.btbbt.com/ddd.js
http://www*.itsun.com/*
http://www.yunxiaoge.com/configs/article/pagetop.js
http://www.google-analytics.com/urchin.js
http://www.crsky.com/in_top3.js
http://*.1tong.com.cn/*
http://ulink*.tom.com/*
http://*.chinabbs.com/*
后面可以自己添加。然后打开Opera6.ini,在[Adv User Prefs]这个下面增加
URL Filter File=D:\Program Files\Opera\filter.ini
路径自己设定,我的filter.ini放在=D:\Program Files\Opera\中,所以是这样。这下完美了。
(2)在standard_menu.ini中,找到[Image Link Popup Menu],在“Item, 56064= Show image properties”的下方,添加如下内容:
Item, "添加到过滤列表"= Copy image address & Execute program,"C:\WINNT\notepad.exe","D:\Program Files\Opera\filter.ini"
说明:“C:\WINNT\notepad.exe”中的notepad.exe请使用自己的目录,同样,“D:\Program Files\Opera\filter.ini”中的filter.ini请使用自己的目录。
(3)在standard_menu.ini中,找到[Image Popup Menu],在“Item, 56064= Show image properties”的下方,添加和上面一样的内容。
(4)重新运行Opera。
6、无法在动网论坛(dvbbs)发帖回帖。
9.0预览版,开启首选项——高级——内容,里面的“启用内嵌框架”。
7、超级拖拽
在Opera6.ini文件的[User Prefs]区段下增加Enable Drag=255
8、自定义鼠标手势
把下面这段文本保存为MyStyleMouseGesture.ini,然后放到C:\Documents and Settings\你的用户名\Application Data\Opera\Opera\profile\mouse里面,重新运行Opera,在首选项——高级——快捷键——鼠标设置那里选择这个脚本。
Opera Preferences version 2.0
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding
[Version]
File Version=1
[Info]
Description=Compatible with Opera 7.x - 8.x
Version=1.0 Build 20050823
NAME=My Style Mouse Gesture
[Application]
GestureLeft=Back
GestureLeft shift=Back
GestureLeft, GestureDown=Back
GestureRight=Forward
GestureRight shift=Forward
GestureRight, GestureUp=Forward
GestureUp=Stop
GestureUp, GestureDown=Reload
GestureUp, GestureLeft=Switch to previous page
GestureUp, GestureRight=Switch to next page
GestureDown, GestureLeft=Undo
GestureDown, GestureRight=Close page & Switch to previous page
GestureDown=Open link in background page | Duplicate page
GestureDown, GestureUp=Reload
说明:“下-右”设置为关闭当前标签并切换到前一个标签,“下-左”为恢复刚才关闭的标签,“上”为停止,“下”为后台开启一个新标签,“上-下”“下-上”都是刷新。
Wednesday, 25. January 2006, 08:36:58 (edited)
[url]http://nontroppo.org/tools/buttonmaker/
进入这个页面,Choose the button's action那里选择按钮进行的操作;OR just write the action as plain text:那里可以不用填写,只有部分操作需要用到;Enter the button's title (optional, but recommended)填写按钮名称;Additional parameters (optional)不用填写;Choose an Icon (optional)选择按钮图标;然后点击Create button生成按钮,把按钮拖动到Opera里面自己需要的位置即可。
下面这里有不少现成的按钮:
[url]http://nontroppo.org/wiki/CustomButtons
直接拖动我的下面的链接到工具栏就变成按钮了(带图标的按钮)
button
button
button
10、添加右键菜单的BBCode
论坛灌水必备,和Firefox的那个BBCode扩展一样。这一段含有vB 代码,大家去看下面这个链接。
[url]http://my.opera.com/亡灵法师/homes/files/添加BBCode代码的右键菜单.txt
11、自定义搜索引擎。
找到search.ini,编辑完之后保存,记得保存的时候设置编码为UTF-8,内容如下:
Opera Preferences version 2.0
; Do not edit this file while Opera is running
; This file is stored in UTF-8 encoding
[Version]
File Version=3
[Search Engine 1]
Name=Google
URL="http://www.google.com/search?q=%s&hl=zh-CN&lr=lang_zh-CN"
Query=
Key=g
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Verbtext=17063
Position=-1
Nameid=0
[Search Engine 2]
Name=百度
URL=http://www.baidu.com/baidu?word=%s&tn=jzzone
Query=
Key=n
Is post=0
Encoding=gbk
Search Type=13
Verbtext=17063
Position=-1
Nameid=0
[Search Engine 3]
Name=雅虎
URL=http://www.yahoo.com.cn/search?ei=UTF-8&fr=fp-tab-web-ycn&p=%s&meta=vl=lang_zh-CN&vl=lang_zh-TW
Query=
Key=g
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Verbtext=17063
Position=-1
Nameid=0
Has endseparator=-1
[Search Engine 4]
Name=金山词霸
URL=http://www.iciba.com/search?s=%s&t=word&lang=utf-8
Query=
Key=z
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=41
Verbtext=17063
Nameid=0
Position=4
12、在右键菜单添加英译汉/日译汉的项目
查找standard_menu.ini这个文件,找到其中的[Document Popup Menu],在上面添加如下内容:
[My Translation Menu]
Item, "英>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/mstranslate/UP26384/T1/P2/l/microsoft/computer_translation.html?wl_lp=EN-ZH_CN&wl_fl=0&wl_rurl=%u&wl_url=%u&wlg_table=-3", , , "View flat""
Item, "日>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/mstranslate/UP26384/T1/P2/l/microsoft/computer_translation.html?wl_lp=JA-ZH_CN&wl_fl=0&wl_rurl=%u&wl_url=%u&wlg_table=-3", , , "View flat""
然后在[Document Popup Menu]中自己选择一个位置,添加下面的内容:
Submenu,"翻译",My Translation Menu
13、使“适合窗口宽度”变成默认状态
在Opera6.ini的[User Prefs]下面,添加下面这一行:Rendering mode=4。
14、使用Opera的user.css过滤广告
优点
1 语法简单,初学者也可以自由定制
2 节约系统资源
缺点
1 需要花时间分析页面源代码
2 无法批处理,只能逐条添加过滤,比较费时间
3 对javascript随机动态生成的广告代码无能为力
综合以上优缺点,本方法比较适合那些用少量iframe和flash做广告的网站,比如http://www.tgfcer.com/club/,此外也可以有针对性地过滤自己不喜欢的某些页面区域。
用法介绍:主要是使用CSS的属性选择符来选择页面中的元素,语法大家一看便明白,即:
html元素名[属性="值"],需要同时选择多个元素时可以用半角逗号隔开它们。
后面的{ display: none; }可以不管,每新建一条规则把它复制到选择符后面,还不明白可以找一些CSS语法的入门介绍看看。
启用user.css:ctrl+F12,高级-内容,点击样式选项按钮,选择user.css的放置目录并在作者模式下勾选"我的样式表",确认。
屏蔽http://www.tgfcer.com/club/广告的示例,将以下代码复制到记事本另存为user.css:
/* google ads */
iframe[name="google_ads_frame"] { display: none; }
/* tgfc.com ads */
embed[src="http://www.tgfcer.com/club/2.swf"],
embed[src="http://www.tgfcer.com/club/gzimage/leifei.swf"],
embed[src="http://www.tgfcer.com/club/gzimage/wei.swf"],
embed[src="http://www.tgfcer.com/club/gz/GW_ad_Swf_TGFC.swf"],
img[src="http://www.tgfcer.com/club/gzimage/CCSHOPLOGO.jpg"],
img[src="http://stbanner.allyes.com/"],
iframe[src="http://www.tgfcer.com/club/gzimage/gzlist.asp"],
iframe[src="http://www.tgfcer.com/club/gzimage/gzlist4.asp"],
iframe[src="http://www.tgfcer.com/marquee.htm"]
{ display: none; }
Tuesday, 27. December 2005, 04:31:45
Originally posted by false:
好东西哦。顺便问一下:超级拖拽在8.5能用么?还有,如何使超级拖拽出来的窗口处于后台阿?
8.5可以用,255是前台打开新窗口
后台就用鼠标手势吧
Wednesday, 28. December 2005, 06:33:42
\Mail\ =Mail
\plug-ins\ =Plug-ins .dll
\profile\toolbar\ =Toolbar configuration .ini
\profile\menu\ =Menu configuration .ini
\profile\mouse\ =Mouse configuration .ini
\profile\keyboard\ =Keyboard configuration .ini
\profile\sessions\ =Sessions .win
\profile\Skin\ =Skin .zip
\profile\images\ =Bookmarks Images .ico
\profile\Contacts.adr =Contacts
\profile\notes.adr =Notes
\profile\opcacrt6.dat =Certificate authorities
\profile\opcert6.dat =Personal certificates
\profile\opera6.adr =Bookmarks
\profile\opera6.ini =Opera settings
\profile\opssl6.dat =SSL preferences
\profile\search.ini =Search engines
\profile\wand.dat =Wand data
\profile\cookies4.dat =Cookies
\profile\global.dat =Global history
\profile\vlink4.dat =Visited links
\profile\download.dat =Download history
Wednesday, 28. December 2005, 13:49:37 (edited)
Originally posted by 亡灵法师:
4、删除不需要的右键菜单和主菜单项目
有的项目是我们不喜欢用的,比在“在新窗口中打开”和“在后台窗口打开”等等(注意,不是在新的标签中打开)。打开Opera安装目录下面的Zh_CN.lng文件(可能名字不一样,但是后缀是lng),查找想要删除的项目名称,比如查找“在新窗口中打开”,我们可以找到一段文字“68009="在新窗口中打开"”,现在再打开standard_menu.ini,查找68009,删除包含68009的那一行即可。同理,可以删除"在后台窗口中打开"这个项目,代码是68010。
直接删除menu.ini中的项就可以了
Originally posted by 亡灵法师:
OR just write the action as plain text:那里可以不用填写
如果在Choose the button's action 中找不到相应的动作,就在or just write...这里自己写,或者用choose the button action和or just write的组合来写一个按钮
举个例子Choose the button's action 的列表里manage它实际上不是一个完整的动作,.在or just比如填写wand,title写上wand
这样就做好了一个管理wand和cookie的按钮 Manage,,,"Wand",Wand
Show popup menu
Show hidden popup menu
上面这两个是比较常用的动作,弹出菜单都用到
新手先不用学太多
Thursday, 29. December 2005, 02:32:13
Originally posted by 亡灵法师:
4、删除不需要的右键菜单和主菜单项目有的项目是我们不喜欢用的,比在“在新窗口中打开”和“在后台窗口打开”等等(注意,不是在新的标签中打开)。打开Opera安装目录下面的Zh_CN.lng文件(可能名字不一样,但是后缀是lng),查找想要删除的项目名称,比如查找“在新窗口中打开”,我们可以找到一段文字“68009="在新窗口中打开"”,现在再打开standard_menu.ini,查找68009,删除包含68009的那一行即可。同理,可以删除"在后台窗口中打开"这个项目,代码是68010。
在menu.ini的对应行行首加个分号“;”,方便恢复
Friday, 30. December 2005, 05:24:32
Friday, 30. December 2005, 08:38:58
Originally posted by QQFarmer:
用了LZ的方法(第五条)来清除广告,重启Opera后,什么网页都打不开了……[img]http://smileys.smileycentral.com/cat/36/36_2_60.gif
肯定不会。而且黑名单可以自己修改的。
Friday, 24. February 2006, 10:37:58
Originally posted by Thruth:
多么希望楼主把这几条分开加入到wiki我不敢乱加的wiki严格遵守使用GPL FDL和Creative Commons协议
我的那个FAQ先加进去吧
Monday, 6. March 2006, 08:56:09
查找standard_menu.ini这个文件,找到其中的[Document Popup Menu],在上面添加如下内容:
[My Translation Menu]
Item, "英>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/mstranslate/UP26384/T1/P2/l/microsoft/computer_translation.html?wl_lp=EN-ZH_CN&wl_fl=0&wl_rurl=%u&wl_url=%u&wlg_table=-3", , , "View flat""
Item, "日>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/mstranslate/UP26384/T1/P2/l/microsoft/computer_translation.html?wl_lp=JA-ZH_CN&wl_fl=0&wl_rurl=%u&wl_url=%u&wlg_table=-3", , , "View flat""
然后在[Document Popup Menu]中自己选择一个位置,添加下面的内容:
Submenu,"翻译",My Translation Menu
上面这个方法没起作用!!!!???有问题吧。 我的是opera 9(8246)
Tuesday, 4. April 2006, 15:30:51
Originally posted by kiss110:
12、在右键菜单添加英译汉/日译汉的项目
查找standard_menu.ini这个文件,找到其中的[Document Popup Menu],在上面添加如下内容:
[My Translation Menu]
Item, "英>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/mstranslate/UP26384/T1/P2/l/microsoft/computer_translation.html?wl_lp=EN-ZH_CN&wl_fl=0&wl_rurl=%u&wl_url=%u&wlg_table=-3", , , "View flat""
Item, "日>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/mstranslate/UP26384/T1/P2/l/microsoft/computer_translation.html?wl_lp=JA-ZH_CN&wl_fl=0&wl_rurl=%u&wl_url=%u&wlg_table=-3", , , "View flat""
然后在[Document Popup Menu]中自己选择一个位置,添加下面的内容:
Submenu,"翻译",My Translation Menu
上面这个方法没起作用!!!!???有问题吧。 我的是opera 9(8246)
没注意这帖,好久没用翻译,发现链接变了,hoho
Item, "英>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/translate?wl_lp=EN-zh_cn&wl_glossary=gl1&wl_fl=2&wl_ucp=1&wl_rurl=about%3Ablank&wl_url=%u&wlg_table=-3", , , "View flat""
Item, "日>>中(Worldlingo)"="Go to page, "http://www.worldlingo.com/wl/translate?wl_lp=JA-zh_cn&wl_glossary=gl1&wl_fl=2&wl_ucp=1&wl_rurl=about%3Ablank&wl_url=%u&wlg_table=-3", , , "View flat""
Wednesday, 5. April 2006, 05:24:35
Originally posted by stlly:
应该只适用于8系列吧?9系列在profile文件夹下已有urlfilter.ini文件,可在其下添加过滤规则。
8,9都适用,文件名不同而已
Wednesday, 5. April 2006, 09:37:02
Originally posted by stlly:
Originally posted by mark_poleon:
Originally posted by stlly:
应该只适用于8系列吧?9系列在profile文件夹下已有urlfilter.ini文件,可在其下添加过滤规则。
8,9都适用,文件名不同而已
我的意思是9系列已自建有urlfilter.ini文件,无须自己手动新建filter.ini和指定路径,过滤规则当然都适用。
新版的其实也可以用,如果只是升级安装的话,设置就在opera6.ini里面。
这篇文章本来修改了一点内容,不过没有办法修改,说2天后的帖子无法改。。。。-_-|||
Originally posted by whuang:
用css过滤一个特定网站div的方法是
建立一个a.css文件,内容为div[id="ad"]{display:none;},
再在Edit site perferences下my style sheet中选择这个文件,
并在author mode中勾上my style sheet。
吗?
效果没出来,是不是哪里还差些?
如果你用的是8333这个版本,就不需要css呢。
1、把这个文件保存为user.css,放到X:\Program Files\Opera\styles下面。
2、进入设置,高级-内容,点击样式选项按钮,选择user.css的放置目录并在作者模式下勾选"我的样式表",确认。
Showing topic replies 1 - 50 of 86.
Moderated by:
Langeline
musiccow
Thruth
mark_poleon
