This is what I had to type in to the javascript box to make this work. Note that I used Zerotime's method, where Mozilla will use the currently selected text.

if (window._content.document.getSelection()!=null)
window._content.document.location='http://www.everything2.com/?node='+window._content.document.getSelection();