Last active
November 3, 2025 15:57
-
-
Save bitmvr/c5aa443222bc3c79d53fcc20d6d1c474 to your computer and use it in GitHub Desktop.
Reddit Bookmarklet Privacy Tool: Clear Recent from Local Storage and DOM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: (() => { | |
| const keys = Object.keys(localStorage).filter(k => k.startsWith('recent-')); | |
| keys.forEach(k => localStorage.removeItem(k)); | |
| const el = document.querySelector('reddit-recent-pages'); | |
| if (el) el.remove(); | |
| console.log(`Removed ${keys.length} localStorage item(s) with "recent-"`); | |
| console.log(el ? 'Removed <reddit-recent-pages> from DOM' : 'No <reddit-recent-pages> found'); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment