Seite 1 von 1

Aufrechterhaltung FireFox und IE-browser

Verfasst: Di 22. Mai 2007, 15:42
von Drive DRKA
Angesehener FJ !
Ansucht euch zu beigeben Aufrechterhaltung FireFox
und IE-browser.
Here simple example for Firefox add-ons

myphoneexplorer.xul
-------------------------------------cute here---------------------

<?xml version="1.0"?>


<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">



<!-- common context-menu -->
<popup id="contentAreaContextMenu">
<!--menuseparator id="myphoneexplorer-separator-menuitem" enabled="true"/ -->
<menuitem id="myphoneexplorer-image-menuitem" label="Download in phone..." enabled="true" oncommand="helpmenu();" />

</popup>

</overlay>

-------------------------------------/cute here---------------------
and myphoneexplorer.js
-------------------------------------cute here---------------------

var phishtankPrefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch("extensions.myphoneexplorer.");
}
,
_contextMenu: null,
get contextMenu() {
var cm=this._contextMenu;
if(!cm) {
this._contextMenu = cm =
document.getElementById("contentAreaContextMenu") ||
document.getElementById("messagePaneContext")
}
return cm;
}


}
function helpmenu()
{
var theurl=window.content.location.href;
if(theurl != "" && theurl != " " && theurl != "NULL")
{
var thefin = btoa(theurl);
window.content.location.href = ""D:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe\" \"%1\";
}

-------------------------------------/cute here---------------------



Fur IE browser

-------------------------------------/cute here---------------------
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\&Downloads in phone...]
@="res://D:\\Program Files\\MyPhoneExplorer\\MyPhoneExplorer.exe"

-------------------------------------/cute here---------------------


Das allein einfache Beispiele des Codes und sie UnArbeiten. Benutigen in Nacharbeit.

Verfasst: Di 22. Mai 2007, 17:51
von FJ
Please write in english the next time ;-)
This translated post is very hard to understand.

Basicly its a good idea and thank you for your code, but its against my philosophy. I hate apps which places everywhere in the system their stuff. Best sample: Nero. Version 6 was so beautiful, Version 7 you can find in "My Computer", the systempanel,....
Thats not good for the health of the PC and it can make massive problems. MyPhoneExplorer is already integrated in the context-menu of the Windows-Explorer. To make this feature or not was a fight with myself - cause its against my philosophy.