I agree that a bookmarklet is preferable to external applications. And in that vein, I’ve adapted this one so that it does in-place encoding/decoding both of normal text and text inside textboxes (like this: na rknzcyr).
javascript:function%20convert(inText){var%20outText=″,t;for(i=0;i64&&t96&&t77&&t109&&t<123))t%20-=%2013;outText%20+=%20String.fromCharCode(t);}return%20outText;}var%20sel=window.getSelection().getRangeAt(0);if(sel==″){var%20act=document.activeElement;if(act.type==”textarea”){var%20start=act.selectionStart,end=act.selectionEnd;if(start!=end){var%20prefix=act.value.substring(0,start);var%20middle=convert(act.value.substring(start,end));var%20suffix=act.value.substring(end);act.value=prefix;act.value%20+=%20middle;void(act.value%20+=%20suffix);}}else{void(inText=prompt(‘Phrase...’,″));if(inText)alert(convert(inText));}}else{out=convert(sel.toString());sel.deleteContents();var%20span=document.createElement(“span”);span.innerHTML=out;sel.insertNode(span);}
(I’ve only tested it on newer versions of Firefox and Chrome)
Irel hfrshy!
Thanks!
(When I saw this in my inbox, I was very very confused, until I realised its context.)
I agree that a bookmarklet is preferable to external applications. And in that vein, I’ve adapted this one so that it does in-place encoding/decoding both of normal text and text inside textboxes (like this: na rknzcyr).
(I’ve only tested it on newer versions of Firefox and Chrome)
Irel hfrshy!
Thanks!
(When I saw this in my inbox, I was very very confused, until I realised its context.)