Last active
November 19, 2015 20:28
-
-
Save tylermenezes/8054d57a6fecdc1dfc27 to your computer and use it in GitHub Desktop.
Censor Web Text
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
$('td.name').each(function(){ | |
var nameParts = $(this).text().split(' '); | |
var blockParts = $.map(nameParts, function(x){ return "▊".repeat(x.length); }); | |
var newName = blockParts.join(' '); | |
$(this).html(newName); | |
}).css('letter-spacing', '-0.2em'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment