Subscribe to all of your joined reddit subreddits in libreddit.
- Head over to reddit's subscription page
- Open dev tools and paste this snippet.
let subs = () => {
let result = "";
Array.from($(".subscription-box").find("li").find("a.title")).forEach(
(val) => {
// Usernames start with `u/`. We ignore them as they cause trouble
if (!val.innerText.startsWith("u/")) {
result += val.innerText + "%2b"; // Subreddits are separated by `%2b`
}
}
);
return result.slice(0, -3);
};
let baseUrl = "https://libredd.it/settings/restore/?subscriptions=";
let subreddits = subs();
let finalUrl = `${baseUrl}${subreddits}`;
// redirect
window.location.replace(finalUrl);
- Then curse reddit for making such a shitty frontend 😡😡😡
Suggestions are welcome