Skip to content

Instantly share code, notes, and snippets.

@jseaton
Created August 20, 2019 17:22
Show Gist options
  • Save jseaton/aa7af334092e9b78960c8c9dace3476e to your computer and use it in GitHub Desktop.
Save jseaton/aa7af334092e9b78960c8c9dace3476e to your computer and use it in GitHub Desktop.
Copy subreddits stupid hack
// Do this in the old subreddits page of the old account
Object.values($("p a.title")).map(x => x.href).filter(Boolean)
// Then do this on an old reddit page, in the console
x=<paste>
window.localStorage["x"] = JSON.stringify(x)
document.location = x[x.length - 1]
// Then do this over and over
x=JSON.parse(window.localStorage["x"]); y=$(".subscribe-button a")[0]; if (y.text == "join") { y.click() }; z=x[x.length - 1]; x.pop(); window.localStorage["x"] = JSON.stringify(x); window.location = z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment