Skip to content

Instantly share code, notes, and snippets.

@danawesome
Created June 18, 2025 17:20
Show Gist options
  • Select an option

  • Save danawesome/273ffbedb59e2f48e895c7a3a1b65008 to your computer and use it in GitHub Desktop.

Select an option

Save danawesome/273ffbedb59e2f48e895c7a3a1b65008 to your computer and use it in GitHub Desktop.
Clear/Remove Reddit 'Recents'

Clear/Remove Reddit 'Recents'

Open the Browser's Developer Tools panel

Ctrl+Shift+i should open the browser's Browser's Developer Tools panel.

Be sure it is on the console tab of that panel.

Then you can copy and paste the JS code below to clear the recents.

Press 'Enter' to run the code.

Code

function clearRedditRecents() {
    const key = "recent-subreddits-store"
    const isPresent = localStorage.getItem(key)
    if(isPresent) {
        localStorage.removeItem(key)
        console.log(`${key} was removed from localStorage`)
    }
    console.log(`${key} was not found in localStorage`)
}

clearRedditRecents()

If the key name ever changes, just update the const in the function and rerun.

This process is irreversible.

Reddit will recreate a new recents store as you use reddit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment