Last active
October 7, 2015 21:36
-
-
Save anevins12/da799e25032283fcc110 to your computer and use it in GitHub Desktop.
Show hidden links in post
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
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