Skip to content

Instantly share code, notes, and snippets.

@Hans5958
Created March 24, 2026 08:28
Show Gist options
  • Select an option

  • Save Hans5958/b543dcc9f1d6a0f473f6aea0d2df67f3 to your computer and use it in GitHub Desktop.

Select an option

Save Hans5958/b543dcc9f1d6a0f473f6aea0d2df67f3 to your computer and use it in GitHub Desktop.
Handy script to open a random r/counting thread on the Thread Directory

This script can be used to open a random r/counting thread on the Thread Directory. Old Reddit and New Reddit is supported.

Usage

  1. Copy script.js or save bookmarklet.txt as a bookmark.

  2. Go to the r/counting Thread Directory.

  3. Run the script

    • Script: Open the browser console (CTRL + SHIFT + K or Developer ToolsConsole), paste the script, and hit ENTER
    • Bookmarklet: Click the saved bookmarklet
javascript:a=document.querySelectorAll(".wiki td:nth-of-type(2) a"),window.open(a[Math.floor(Math.random()*a.length)]);
a = document.querySelectorAll('.wiki td:nth-of-type(2) a')
r = a[Math.floor(Math.random() * a.length)]
window.open(r)
r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment