Created
March 6, 2016 13:11
-
-
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
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
// 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