Last active
August 29, 2015 14:08
-
-
Save noelleleigh/0805a5934fc6c307d905 to your computer and use it in GitHub Desktop.
Produces a QR code for the current multireddit. Scan with your phone to get the string and paste it into Alien Blue to easily import your multi.
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() { | |
var ul_array = document.getElementsByClassName('subreddits').item(0).children; | |
var multiString = ""; | |
for (var i = 0; i < ul_array.length; i++) { | |
var subName = ul_array[i].firstChild.firstChild.data.slice(3); | |
multiString += subName + "+"; | |
} | |
window.open("http://chart.apis.google.com/chart?cht=qr&chs=300x300&chl=" + encodeURIComponent(multiString), '_blank'); | |
})() |
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/