Last active
January 8, 2017 06:38
-
-
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.
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
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); | |
}()); |
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
https://www.reddit.com/r/AlienBlue/comments/2kfchk/i_made_a_bookmarklet_to_quickly_import_your/