Skip to content

Instantly share code, notes, and snippets.

@anevins12
Last active October 7, 2015 21:36
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 anevins12/da799e25032283fcc110 to your computer and use it in GitHub Desktop.
Save anevins12/da799e25032283fcc110 to your computer and use it in GitHub Desktop.
Show hidden links in post
var post = $('.threadpost .post'),
links = post.find('a');
// Show hidden links
links.each(function() {
var link = $(this);
if(link.text() == '') {
link.text(link[0].outerHTML);
post.append('<pre>' + link.html() + '</pre>');
// Hide the original link
link.hide();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment