Skip to content

Instantly share code, notes, and snippets.

@noelleleigh
Last active August 29, 2015 14:08
Show Gist options
  • Save noelleleigh/0805a5934fc6c307d905 to your computer and use it in GitHub Desktop.
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.
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