-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The javaScript does not work to download subscriptions #3
Comments
I just copy pasted the code and it worked on my end (i'am logged in to reddit) so I will need a little more info. |
Sorry to add something. I tested it on Google chrome on Windows 10 and I got same problem like that |
Weird, Can I know how many subreddits you are subscribed to? Also try running this and check your console, I have added some error checking. Basically what the script does is, it extracts subs names from that "Multireddit of your subs" link and adds them to a JSON file and downloads that. |
I think the issue is due to the size of the URL, here are other reddit projects having the same issue. Cannot import large amount of Subscriptions #352 https://codeberg.org/teddit/teddit/issues/159#issuecomment-180925 |
For that instance, https://github.com/redlib-org/redlib, I have my subscription linked with this https://github.com/libreddit/libreddit/wiki/Import-Reddit-Subscriptions .it said the max capacity is around 300. But, I only subscribe less than that. What do you think? |
I had an issue with that in firefox. Also, there is a cap on the amount of subs you can get from the multireddit. I wrote up this little script to run in the dev tools console that exports it. It uses the 'My Subreddits' dropdown on the upper left: EDIT: It only works when you have RES installed. Otherwise one from my next post should work
|
@dr-carrot I tried that script and it does not worked |
@dtantono
|
Thanks I have Firefox and it works. But, I don't think this is a permanent solution because majority people use chromium based browsers |
That's strange. It worked when I tried it in google chrome and I even downloaded chromium and it worked there, too. I'm not sure what the optimal way to do this is or what the maintainers might have in mind. I just happened to try this today, found it didn't work, and modified the script until it did A little extension might be the most flexible and reliable way to do this. Or maybe there is one that exists that could be leveraged |
Hi
I tried to copy paste this command
javascript:(function(){const subnames=document.querySelector('.subscription-box a').href.split('/r/')[1].split('+');const jsonData=JSON.stringify(subnames,null,2);const blob=new Blob([jsonData],{type:'application/json'});const downloadLink=Object.assign(document.createElement('a'),{href:URL.createObjectURL(blob),download:'rdx_subs.json'});document.body.appendChild(downloadLink).click()&&document.body.removeChild(downloadLink);})();
to download json file. But, it is working when I logged out and when I try to logged in. it shows nothing. What do you think?
The text was updated successfully, but these errors were encountered: