用 Firefox 的時候,很多人會裝一個 extension: IE View,用途是把某 link 用 IE 來開。一直以來我一直想要在我的 Maxthon 或 IE 裡面,也有一個 “Open in Firefox” 的功能… 這樣把 Maxthon 當主要瀏覽器的我,也可以方便把連結另開到 Firefox 去 ..
今天終於找到啦,謝謝這篇文章,我就是照抄改成firefox而已:
http://forum.maxthon.com/forum/lofiversion/index.php/t26274.html
請製作兩個檔案:
1. open_firefox.html
<script LANGUAGE="JavaScript">
function runK(location) {
var shell = new ActiveXObject("WScript.Shell");
shell.run("\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" \"" + location +
"\"");
}
var oWindow = window.external.menuArguments;
if (oWindow != null) {
var oDocument = oWindow.document;
var sText = null;
var oEvent = oWindow.event;
if [...]