this post was submitted on 26 Jan 2024
9 points (80.0% liked)

Firefox

5578 readers
66 users here now

A community for discussion about Mozilla Firefox.

founded 2 years ago
MODERATORS
 

purpx vg bhg!

all 6 comments
sorted by: hot top controversial new old
[–] palordrolap@kbin.social 4 points 1 year ago* (last edited 1 year ago)

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 points 1 year ago* (last edited 1 year ago)

I like it. People often use ROT-13 for spoilers, it's nice to convert back and forth with a few clicks. Simple and to the point.

V yvxr vg. Crbcyr bsgra hfr EBG-13 sbe fcbvyref, vg'f avpr gb pbaireg onpx naq sbegu jvgu n srj pyvpxf. Fvzcyr naq gb gur cbvag.

[–] CameronDev@programming.dev 1 points 1 year ago (1 children)

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

[–] commie@lemmy.dbzer0.com 1 points 1 year ago (1 children)

i don't know what cyberchef is.