Skip to content

Instantly share code, notes, and snippets.

@trodrigues
Created March 6, 2016 13:11
Show Gist options
  • Save trodrigues/611c97f0d6db7ccaa2c8 to your computer and use it in GitHub Desktop.
Save trodrigues/611c97f0d6db7ccaa2c8 to your computer and use it in GitHub Desktop.
Bookmarklet for twitlistmanager.com which places labels for lists next to each checkbox
// Bookmark twitlistmanager.com on your browser, then edit the URL and replace with the line below
javascript:(function (){ var titles = []; function doCol(colType) { $(colType).each(function(idx, item){ $(item).find('td').each(function(idxCol, col) { if(idxCol>1) { var html = col.innerHTML; col.innerHTML='<label for="'+$(col).find('input').attr('id')+'">'+ html +titles[idxCol-2]+'</label>'; } }); }); } $('tr.title .columnHead img').each(function(idx, item){ titles.push(item.getAttribute('src').split('=')[1]); }); doCol('.lightYellow');doCol('.rowData');})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment