Reddit Base64 Decoder

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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
rpmn0ise
일일 설치 수
0
총 설치 수
4
평점
0 0 0
버전
1.0
생성일
2026-04-18
갱신일
2026-04-18
크기
2.6KB
라이선스
MIT
적용 사이트

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`