Created
April 2, 2015 10:29
-
-
Save CS1000/b452df90cdce9d4ed57c to your computer and use it in GitHub Desktop.
SNIPPET to hide all answers on a StackExchange post, except the one linked to (hash anchor, eg. #id) if exists.
This file contains hidden or 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
javascript:(function(){$(".answer").each(function(i,n){if(n.id!==('answer'+document.location.hash).replace(/#/,'-'))n.style.display="none"})})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment