Skip to content

Instantly share code, notes, and snippets.

@noelleleigh
Last active January 8, 2017 06:38
Show Gist options
  • Save noelleleigh/452fde5999a68d97d58e to your computer and use it in GitHub Desktop.
Save noelleleigh/452fde5999a68d97d58e to your computer and use it in GitHub Desktop.
Produces a string for the multireddit that can be pasted into Alien Blue to easily import your current multireddits.
javascript: (function() {
const subredditsList = document.querySelector('.subreddits').childNodes;
let multiString = '';
subredditsList.forEach(listItem => {
const subName = listItem.firstChild.getAttribute('href').slice(3);
multiString += subName + '+';
});
const instructions = 'Copy this string and send it to your phone. \n\n\ \
In Alien Blue: \n\n \
1. Tap "Edit" \n \
2. Tap the "+" button next to the group you want the multi to be in. \n \
3. Paste the string into the "/r/" box. \n \
4. Tap "Done"'
window.prompt(instructions, multiString);
}());
@noelleleigh
Copy link
Author

Refactored to not use var, added numbering to the instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment