Found an extension today that can rot13 any text.

https://addons.mozilla.org/en-US/firefox/addon/r13/?

purpx vg bhg!

9 points · 5 comments · view on lemmy.world

5 Comments

palordrolap@kbin.social · 4 pts · 2y

Here's a bookmarklet that handles ROT13:

javascript:var a=(''+document.getSelection())||prompt("Enter text to be rot13ed","");a=a.replace(/[a-z]/gi,function(s){return String.fromCharCode(s.charCodeAt(0)+13*(('a'<=s&&s<='m'||'A'<=s&&s<='M')?+1:-1))});alert(a);

Pros: Way smaller than an extension.

Cons: Could be better written / made more extensible. May cause nerd-sniping of code golfers. May not work on other/older browsers, maybe. Uses alert.

lvxferre@mander.xyz · 2 pts · 2y
[ removed ]
CameronDev@programming.dev · 1 pts · 2y (3 replies)

Thats very specific. Cyberchef can also rot13 any text, why would an extension be required?

commie@lemmy.dbzer0.com · 1 pts · 2y (2 replies)

i don't know what cyberchef is.

lud@lemm.ee · 3 pts · 2y (1 reply)
commie@lemmy.dbzer0.com · 1 pts · 2y

i can see myself using that, but i can also see myself using this plugin.