npie_opera 1.5.5(2008.10.25)
介绍:
不用多说,opera绝对是一款十分优秀的浏览器,可惜由于ie以前使用十分广泛,许多网站都以ie为标准,导致opera无法访问某些网站(中国的网站尤其如此).
这个opera插件可以在opera的窗口里调用ie核心来浏览网页(类似ie_tab,在opera中新开一个标签页,用ie核心浏览),可以暂时以此来对付某些opera无法打开的网页.
功能:
在opera中使用IE核心浏览某个页面
使用方法:
@自动安装方法:
运行opera扩展安装工具(下载:http://www.skycn.com/soft/41977.html或http://www.leruan.cn/2008122215218.html),选择安装文件ie_opera.operaini,点击安装即可
(安装完后可以打开“用opera打开此文件来测试插件打开效果.html”看效果,如果无法打开文件,可以试试打开http://www.leruan.cn/2007121421268.html网页看效果)
@简易手动安装方法:
一:
将npie_opera.dll放入Opera\program\plugins中.
二:
到http://www.leruan.cn/20071010184151.html添加view in ie按钮
@手动安装方法(适合老鸟或安装工具不起作用时):
一:
将npie_opera.dll放入Opera\program\plugins中.
二:
编辑Opera\profile\toolbar\standard_toolbar (1).ini
(如果没有这个文件,则运行opera,工具-》首选项,高级:工具栏,在工具栏旁边点副本,然后选择副本,确定)
在[Customize Toolbar Custom.content](如果没有这行就自己添加)下添加
Button0, "View in IE"="Go to page, "javascript:(function () { if( !location.href || location.href.match(/^(javascript|about|opera):/i) ) { return; } var w = window.open(); w.document.write('<html><head><title>' + (document.title?document.title:location.href).replace(/</,'<') + ' - View in IE<\/title><\/head><body><div style=\'position:absolute;top:0;left:0;right:0;bottom:0;\'><embed type=\'application\/ie_opera\' width=\'100'+String.fromCharCode(37)+'\' height=\'100'+String.fromCharCode(37)+'\' param-location=\'' + window.location.href + '\' style=\'background-color: gray\' src=\'\' pluginspage=\'http://www.leruan.cn/20071010184151.html\'><\/embed><\/div><\/body><\/html>'); })();", , "View in IE", "View""
(
注意:Button0是假设[Customize Toolbar Custom.content]下没有内容,如果已经有许多button,那么0要改为接上面一个数值
如:
已有:
Button0, "菜单"="Show popup menu, "Browser Menu Bar""
那么要这样加:
Button1, "View in IE"="Go to page, "javascript:(function () { if( !location.href || location.href.match(/^(javascript|about|opera):/i) ) { return; } var w = window.open(); w.document.write('<html><head><title>' + (document.title?document.title:location.href).replace(/</,'<') + ' - View in IE<\/title><\/head><body><div style=\'position:absolute;top:0;left:0;right:0;bottom:0;\'><embed type=\'application\/ie_opera\' width=\'100'+String.fromCharCode(37)+'\' height=\'100'+String.fromCharCode(37)+'\' param-location=\'' + window.location.href + '\' src=\'\' pluginspage=\'http://www.leruan.cn/20071010184151.html\'><\/embed><\/div><\/body><\/html>'); })();", , "View in IE", "View""
)
三:
保存,打开opera
工具-》外观->按钮:我的按钮,将view in ie按钮拖到你要放的地方即可,浏览网页时点击view in ie即可新开页面,以ie核心浏览.
(确认opera允许插件和javacript,查看方法:按F12, 看弹出的菜单中"允许使用插件","允许使用javascript"有没有打勾)
四:
如果你想每次浏览某一个网页都用此插件
可以新建一个Autorender in IE.js放入用户JavaScript文件夹里
(JavaScript文件夹:工具-》首选项-》高级:内容:javascript选项,里面即可以设javacsript文件路径)
内容:
// ==UserScript==
// @include http://update.microsoft.com/*
// @include http://www.windowsupdate.com/*
// @include http://*.btchina.net/*
// @include http://*.qzone.qq.com/*
//
// @exclude *.wmv
// @exclude *.mp3
// @exclude *.avi
// ==/UserScript==
document.addEventListener('load'
,function() {
var doc = document;
if (!doc.getElementById('operasExplorerEngine')) {
var html='<title>'+doc.title+' - View in IE</title><body style="padding:0;border:0;margin:0;"><embed type="application/ie_opera" width="100%" height="100%" param-location="'+location.href+'" id="operasExplorerEngine" src="" pluginspage="http://www.leruan.cn/20071010184151.html"></body>';
doc.open();
doc.write(html);
doc.close();
}
else {
var foo = doc.createElement('script');
//this is for so the click to activate works so the plugin isn't vanished.
foo.setAttribute('src','data:text/javascript,' +
escape('(function(){document.getElementById(\'operasExplorerEngine\').outerHTML = document.getElementById(\'operasExplorerEngine\').outerHTML})();')
);
//append the script so it runs, then immediately remove it, so it does not leave any alterations in the markup
//again, this may fire mutation events, but I doubt any page will have any problems
(doc.body || doc.documentElement).appendChild(foo);
(doc.body || doc.documentElement).removeChild(foo);
}
}
,true
);
你可以在
// @include http://*.qzone.qq.com/*
下添加你每次都要使用ie浏览的网址,格式和上面列出的网址一样
五:
在链接上右键添加view in ie,可以右键选择view in ie用插件打开页面
编辑Opera\profile\menu\standard_menu (1).ini
[Link Popup Menu]
Item, "View in IE"=Go to Page,"javascript:void(inivar='%l')",,,"Attachment Archives" & Go to Page, "javascript:(function () { var link=inivar; var w = window.open(); w.document.write('<html><head><title>' + ' - View in IE<\/title><\/head><body><div style=\'position:absolute;top:0;left:0;right:0;bottom:0;\'><embed type=\'application\/ie_opera\' width=\'100'+String.fromCharCode(37)+'\' height=\'100'+String.fromCharCode(37)+'\' param-location=\'' +link+ '\' src=\'\' pluginspage=\'http://www.leruan.cn/20071010184151.html\'><\/embed><\/div><\/body><\/html>'); })();"
常见问题:
1.如何使用外部的ie打开插件里的新窗口
可以使用配置文件
在opera目录中新建ie_opera.ini
内容:
[Set]
Always Open In IE=0
[Url Always Open In IE]
url=crsky.com;btchina.net
其中Always Open In IE可以设0或1,表示一直在opera中打开新窗口或一直在IE中打开新窗口
url表示url中有crsky.com或btchina.net,则在IE中打开新窗口,字段以;分隔
2.在当前页用ie打开
编辑Opera\profile\toolbar\standard_toolbar (1).ini
(如果没有这个文件,则运行opera,工具-》首选项,高级:工具栏,在工具栏旁边点副本,然后选择副本,确定)
在[Customize Toolbar Custom.content](如果没有这行就自己添加)下添加
Button0, "view in ie(same tab)"="Go to page, "javascript:(function () { if( !location.href || location.href.match(/^(javascript|about|opera):/i) ) { return; } document.write('<html><head><title>' + (document.title?document.title:location.href).replace(/</,'<') + ' - view in ie<\/title><\/head><body><div style=\'position:absolute;top:0;left:0;right:0;bottom:0;\'><embed type=\'application\/ie_opera\' width=\'100'+String.fromCharCode(37)+'\' height=\'100'+String.fromCharCode(37)+'\' param-location=\'' + window.location.href + '\'><\/embed><\/div><\/body><\/html>'); })();", , "View in IE(same tab)", "View""
作者:hgyxb
主页:http://www.leruan.cn
邮箱:leruan.cn@gmail.com
感谢网上高手提供view in ie按钮脚本
感谢netscape提供插件开发api
感谢opera提供如此好的浏览器
- 1
- 2
前往页