Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tylermenezes
Last active November 19, 2015 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylermenezes/8054d57a6fecdc1dfc27 to your computer and use it in GitHub Desktop.
Save tylermenezes/8054d57a6fecdc1dfc27 to your computer and use it in GitHub Desktop.
Censor Web Text
$('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