npviewinie 1.6.1(2010.3.25)

:
ö˵,IEķIEOperaFirefoxȸGoogle(Google Chrome)ȣϧIEǰʹʮֹ㷺,վIEΪ׼,Щ޷ĳЩվ(йվ)޷ʹۿƵȡ
viewinieOperaȸGoogle(Google Chrome)ĴIEҳһǩҳʹIEʱԴӦĳЩOperaȸGoogle(Google Chrome)޷򿪵ҳ޷ʹҳ

:
operaʹIEĳҳ

ʹ÷:
һ:
npviewinie.dllOpera\program\plugins.
:
http://shashanzhao.com/viewinieview in ieť

:
,opera

ߣ->ť:ҵİť,view in ieťϵҪŵĵط,ҳʱview in ie¿ҳ,ie.
(ȷoperajavacript,鿴: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='<html><head><title>'+doc.title+' - View in IE</title><script src=\'http://hgyxb.googlecode.com/files/npviewinie2.js\' type=\'text/javascript\'></script></head><body style="padding:0;border:0;margin:0;"><script type=\'text/javascript\'>Viewinie("'+location.href+'" );</script></body></html>';
      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\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\/viewinie\' width=\'100'+String.fromCharCode(37)+'\' height=\'100'+String.fromCharCode(37)+'\' param-location=\'' +link+ '\' src=\'\' pluginspage=\'http://leruan.7mx.cn/viewinie.html\'><\/embed><\/div><\/body><\/html>'); })();"

:
1.ʹⲿie򿪲´
ʹļ
operaĿ¼½npviewinie.ini
:
[Set]
Always Open In IE=0

[Url Always Open In IE]
;url=crsky.com;btchina.net

Always Open In IE01,ʾһֱoperaд´ڻһֱIEд´
urlʾurlcrsky.combtchina.net,IEд´,ֶ;ָ

2.ڵǰҳie
༭Opera\toolbar\standard_toolbar (1).ini
(ûļ,operaߣѡ,߼,ڹԱߵ㸱Ȼѡ񸱱,ȷ)
[Customize Toolbar Custom.content](ûоԼ)
Button2, "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(/</,'&lt;') + ' - view in ie<\/title><script src=\'http://hgyxb.googlecode.com/files/npviewinie2.js\' type=\'text/javascript\'></script><\/head><body><div style=\'position:absolute;top:0;left:0;right:0;bottom:0;\'><script type=\'text/javascript\'>Viewinie(\''+location.href+'\');</script><\/div><\/body><\/html>'); document.close(); })();", , "View in IE(same tab)", "View""

                                                                                                                                                  :hgyxb
                                                                                                                                                  ҳ:http://www.shashanzhao.com
                                                                                                                                                  :hgyxb@qq.com
                                                                                                                                                  лϸṩview in ieťű
                                                                                                                                                  лnetscapeṩapi
                                                                                                                                                  лoperaṩ˺õ


