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.)
Current theme: default
Less Wrong (text)
Less Wrong (link)
Arrow keys: Next/previous image
Escape or click: Hide zoomed image
Space bar: Reset image size & position
Scroll to zoom in/out
(When zoomed in, drag to pan; double-click to close)
Keys shown in yellow (e.g., ]) are accesskeys, and require a browser-specific modifier key (or keys).
]
Keys shown in grey (e.g., ?) do not require any modifier keys.
?
Esc
h
f
a
m
v
c
r
q
t
u
o
,
.
/
s
n
e
;
Enter
[
\
k
i
l
=
-
0
′
1
2
3
4
5
6
7
8
9
→
↓
←
↑
Space
x
z
`
g
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.)