Reddit Base64 Decoder

Userscript that automatically detects and decodes Base64 strings on Reddit, replacing them with readable content.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, Greasemonkey alebo Violentmonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey, % alebo Violentmonkey.

Na nainštalovanie skriptu si budete musieť nainštalovať rozšírenie, ako napríklad Tampermonkey alebo Userscripts.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie, ako napríklad Tampermonkey.

Na inštaláciu tohto skriptu je potrebné nainštalovať rozšírenie správcu používateľských skriptov.

(Už mám správcu používateľských skriptov, nechajte ma ho nainštalovať!)

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie, ako napríklad Stylus.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

Na inštaláciu tohto štýlu je potrebné nainštalovať rozšírenie správcu používateľských štýlov.

(Už mám správcu používateľských štýlov, nechajte ma ho nainštalovať!)

Autor
rpmn0ise
Denne inštalácií
2
Celkový počet inštalácií
4
Hodnotenie
0 0 0
Verzia
1.0
Vytvorené
18.04.2026
Aktualizované
18.04.2026
Veľkosť
2,6 KB
Licencia
MIT
Spustiť na

Reddit Base64 Decoder

Userscript that automatically detects and decodes Base64 strings on Reddit, replacing them with readable content.


Features

  • Automatic detection of Base64 strings in posts and comments
  • Real-time decoding
  • Direct replacement of encoded text
  • Converts decoded URLs into clickable links
  • Handles dynamic content via MutationObserver

Example

Before:

aHR0cHM6Ly9tb2RzZmlyZS5jb20vOXRlOFc3NTRMdWs3Q0JU

After:

https://modsfire.com/9te8W754Luk7CBT

→ Automatically clickable


Installation

Just click the "Install this script" button.


How it works

  • Scans the DOM using TreeWalker
  • Detects Base64 strings via regex
  • Decodes using atob()
  • Replaces text with:

    • <a> element if it’s a URL
    • plain text otherwise
  • Observes DOM changes with MutationObserver


Technical Notes

  • Base64 detection regex:

```js id="ex3" /\b[A-Za-z0-9+/]{20,}={0,2}\b/g


* URL detection:

```js id="ex4"
/^https?:\/\/[^\s]+$/
  • UTF-8 handling:

```js id="ex5" decodeURIComponent(escape(atob(str)))


---

## Limitations

* Possible false positives (strings matching Base64 pattern)
* Decoded output may be unreadable (binary data)
* Depends on Reddit’s DOM structure
* May reprocess dynamically loaded nodes

---

## Improvements (TODO)

* Better false-positive filtering
* Optional UI (tooltip / toggle)
* Multi-site support
* Performance optimization (avoid redundant scans)
* Replace legacy UTF-8 handling with `TextDecoder`