Created
August 16, 2013 10:55
-
-
Save hinovana/6248975 to your computer and use it in GitHub Desktop.
JSONを整形して表示するブックマークレット
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
javascript:;new function(){var pre = document.body.getElementsByTagName('pre')[0],str = JSON.stringify(JSON.parse(pre.innerHTML), null, ' ');str = str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">");document.body.innerHTML = '<textarea style="width: 100%;height: 100%;">' + str + '</textarea>';}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
33333