Ah, screw it ...
Reinstalled previous video downloadhelper version [1] and disabled auto update.
Code:
Core.prototype.makeDownloadMenuitem=function(menupopup,entry,classes) {
var menuitem=menupopup.ownerDocument.createElement("menuitem");
var eventTarget=menuitem.QueryInterface(Components.interfaces.nsIDOMEventTarget);
var label=Util.getPropsString(entry,"label");
if(label)
menuitem.setAttribute("label",label);
var icon=Util.getPropsString(entry,"icon-url");
if(icon) {
menuitem.setAttribute("image",icon);
classes.push("menuitem-iconic");
classes.push("controler-entry");
}
function CommandListener(core, entry, processor) {
this.core=core;
this.entry=entry;
this.processor=processor;
}
CommandListener.prototype={
handleEvent: function(event) {
try {
var entry=this.entry.get();
if(entry) this.core.processEntry(this.processor,entry);
} catch(e) {
dump("!!! [Core/DownloadMenu] CommandListener.handleEvent(): "+e+"\n");
}
event.stopPropagation();
}
}
var i=this.getProcessors().enumerate(), got = null; // find the processor we want, screw the rest
while(i.hasMoreElements()) {
var processor=i.getNext().QueryInterface(Components.interfaces.dhIProcessor);
if(processor.canHandle(entry) && processor.name == "dta-turbo") got = processor;
}
var commandListener;
if(got != null) {
commandListener = new CommandListener(this, Components.utils.getWeakReference(entry), got);
} else {
dump("Oww crap."); // yet to hit this, unless the caller already handles null properly
return null;
}
eventTarget.addEventListener("command",commandListener,false,false);
return menuitem;
}
edit: dooh! Due of a slight mistake - the options got reset and now suddenly the click rebind to DownThemAll started to work! Seems there was something screwed up with my previous install or something went wrong with downgrading ... anyway, no need for the manual hackery anymore.