Created
August 20, 2019 17:22
-
-
Save jseaton/aa7af334092e9b78960c8c9dace3476e to your computer and use it in GitHub Desktop.
Copy subreddits stupid hack
This file contains 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
// 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