Provare a modificare overlay.js and overlay.xul all'interno di SystranFirefoxPlugin.xpi togliendo rispettivamente le seguenti linee di codice:
onPoupShowing: function() {
try {
var seperator = document.getElementById("systran-contextmenu-seperator");
var lookup = document.getElementById("systran-contextmenu-lookup");
var translate = document.getElementById("systran-contextmenu-translate");
// we will determine context menu state just like in browser.js
// for example, http://lxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#4096
var contextMenu = new nsContextMenu(document.getElementById("contentAreaContextMenu"));
if(!(contextMenu.inDirList || contextMenu.onImage || contextMenu.isContentSelected || contextMenu.onLink || contextMenu.onTextInput))
{
seperator.hidden = false;
lookup.hidden = true;
translate.hidden = false;
translate.label = this.getString("context.translate_this_page");
}
else if(contextMenu.isTextSelected)
{
seperator.hidden = false;
lookup.hidden = false;
translate.hidden = false;
var text = window.content.getSelection().toString();
if(text.length > 18)
text = text.substring(0, 15) + "...";
lookup.label = this.getString("context.lookup") + " \"" + text + "\"";
translate.label = this.getString("context.translate") + " \"" + text + "\"";
}
else
{
seperator.hidden = true;
lookup.hidden = true;
translate.hidden = true;
}
} catch (err) {
alert(err);
return;
}
},
<popup id="contentAreaContextMenu">
<menuseparator id="systran-contextmenu-seperator"/>
<menuitem class="menuitem-iconic" image="chrome://systran/skin/systran_button.png" id="systran-contextmenu-translate" oncommand="SystranToolbar.onTranslateSelectionCommand(event);"/>
<menuitem class="menuitem-iconic" image="chrome://systran/skin/lookup_button.png" id="systran-contextmenu-lookup" oncommand="SystranToolbar.onLookupSelectionCommand(event);"/>
</popup>