vessillo / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

Firefox like Notepad #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Incorporate FoxReplace into the following add-on BOOKMARK. The bookmark
launches a new window of FireFox that acts like notepad. It would be great
if FoxReplace worked with it.

javascript:(function(){s=document.selection?document.selection.createRange().tex
t:window.getSelection?window.getSelection().toString():document.getSelection?doc
ument.getSelection():'';pwin=window.open('','_blank','menubar=yes,scrollbars=yes
,location=no,height=500,width=600');with(pwin.document){if(s){write(s);close();}
body.contentEditable='true';designMode='on';}if(window.focus){pwin.focus();setTi
meout('pwin.focus()',125)};void(0);})()

Original issue reported on code.google.com by marc.r...@gmail.com on 14 Dec 2009 at 3:58