this post was submitted on 21 Jun 2023
25 points (100.0% liked)

Reddit Migration

145 readers
1 users here now

### About Community Tracking and helping #redditmigration to Kbin and the Fediverse. Say hello to the decentralized and open future. To see latest reeddit blackout info, see here: https://reddark.untone.uk/

founded 1 year ago
 

A script to help you make a list and export all subreddits you joined. Made by Tim Visée, not me, I just found it while looking for an easy way to get that list.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

In Chrome you don't even need to open the developer console. To get a comma separated list, just go to:
https://www.reddit.com/subreddits

Then paste this in the address bar:

javascript:$('body').replaceWith('<body>'+$('.subscription-box').find('li').find('a.title').map((_, d) => $(d).text()).get().join("\",\"")+'</body>');javascript.void()

The trick is that when you first paste it, the leading "javascript:" gets stripped off. So you have to type it in again.

This will give a list in the browser:

javascript:$('body').replaceWith('<body>'+$('.subscription-box').find('li').find('a.title').map((_, d) => $(d).text()).get().join("<br>")+'</body>');javascript.void()

[–] [email protected] 1 points 1 year ago

That is awesome. I didn't know you could do stuff like that in Chrome. Thank you!