Posts: 1,271
 
	
	
		now that i know how to add toolbar buttons and contextmenu items to firefox,
	
	
	
	
 
 
	
	
	
		
	Posts: 1,271
 
	
	
		qm in firefox context menu:
 
 
	
	
	
		
	Posts: 1,769
 
	
	
		AHHHHH....i just thought of a way to use this but i need your help.
	
	
	
	
 
 
	
	
	
		
	Posts: 1,271
 
	
	
		first install:
ChromEdit Plus Special Edition
http://webdesigns.ms11.net/chromeditpSE.html 
and take a look at
http://webdesigns.ms11.net/ChromeFiles.zip 
put the attached file into \chrome\UCJSFiles\
On Windows XP/2000, the path is usually %AppData%\Mozilla\Firefox\Profiles\xxxxxxxx.default\, where xxxxxxxx is a random string of 8 characters. Just browse to C:\Documents and Settings\[User Name]\Application Data\Mozilla\Firefox\Profiles\  and the rest should be obvious.
this is only neccerary when you want to have an icon in the menu: 
add the following code the userChrome.css (you will have to change the path to your qm icon) and restart FF.
menuitem[label="LaunchQM"]  {
in the script i call function ff2qm (line 44),
var args = ["Q","+","M","+ff2qm+","A",[aURI.spec],"context"];
in case you don't the second argument just remove it (example function has to be changed too 
 ).
var args = ["Q","+","M","+ff2qm+","A",[aURI.spec]];
ff2qm
/ function  [$a1] [lpstr 'a2]sel  a2, case  "context",, _s=a1,, _s.setclip, case else ,, out  a1
Attached Files LaunchQM.uc.zip  (Size: 1.08 KB / Downloads: 493)
qm_png.zip  (Size: 407 bytes / Downloads: 581)
 
	
	
	
 
 
	
	
	
		
	Posts: 1,271
 
	
	
		this way you can pass only one url at a time to qm (no mulitple selection),
	
	
	
	
 
 
	
	
	
		
	Posts: 1,769
 
	
	
		awesome...thanks.
	
	
	
	
 
 
	
	
	
		
	Posts: 1,271
 
	
	
		i made some progress.
here is an example firefox content menu script
var LaunchQM = {
the lines
this.mItem.setAttribute("label", "Tweet! this");
var args = ["Q","+","M","+ff2qm+","A",[aURI.spec], selection, "context"];
are very important.
1. set context menu label
2. everything after "A", will be passed to a qm function.
replace "+ff2qm+" with your own function.
your function has to be enclosed with + !!!
you also need to replace LaunchQM to something else.