How can I decode this?

Discussion in 'JavaScript' started by bornintheusa, May 4, 2011.

  1. #1
    http://www.datafilehost.com/get.php?file=e622f057
    Code (markup):
    (There were too many characters for it to be able to fit into this post, I hope that's ok. Sorry).

    I've been stumped with this for about a week now, needless to say, I don't have much experience with javascripts. Any help will be greatly appreciated.
     
    bornintheusa, May 4, 2011 IP
  2. Jan Novak

    Jan Novak Peon

    Messages:
    121
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    0
    #2
    There are characters in unicode naming. So you can easily decrypt it:

    
    <style type="text/css">
    /* 
    
    
    (C) TUMBLR THEME BY DARLIEECIOUS.TUMBLR.COM
    
    please do not remove this tag and the credits of this theme.
    do not claim, steal, redistribute, copy etc. any part of this theme.
    
    
    */
    
    body {
    	line-height:auto;
    	margin: 0;
    	padding: 3em 0 0;
          
    }
    
    a, a:visited, a:active {text-decoration: none;}
    a:hover {font-weight:bold;text-decoration:none;}
    
    img {
    	border:0px;
    	max-width: 500px;
    	background-color:none;
    }
    
    img:hover {
    	border:0px!important;
    	max-width: 500px;
    	background-color:none;
    	border-bottom:0px transparent solid!important;  
    }
    
    #posts{
    	margin-bottom:10px;
    	text-align:justify;
    }
    
    #_{
    padding:10px;
    }
    
    #navigate {position:fixed;index-z:1;top:-100px;padding-top:100px;text-align:justify;margin-left:-10px;width:520px;}
    
    #darlieecious{margin: 0px auto;width: 850px;}
    
    #content{
    margin-top:-3px;
    width: 500px;
    padding:10px;
    text-align:justify;
    height:auto;
    }
    
    
    a.nav:visited, a.nav:active, a.nav, .nav {
    	text-transform:uppercase;
    	padding:3px;margin-bottom:5px;
    	line-height:20px;display:block;
    	text-align:center;margin-right:15px;
    }
    
    a.nav:hover {text-decoration:none;font-weight:normal;}
    
    
    #posts{
    text-align:justify;
    text-transform:normal;
    width:500px;
    word-wrap:break-word;
    margin-bottom:10px;
    }
    
    
    .post_title, a.post_title, .title {   
    	text-decoration:none;
    	display:block;
    	margin-bottom:10px; 
    	font-weight:bold;    
    }
    
    .page_link {
    		font-weight:normal;
    		line-height:auto;
    }
    
    .quote {
    		font-weight:normal;
    		display:block;
    		line-height:auto;
    }
    
    .details {
    	display:none;
    	margin-top:-55px;
    	margin-left:130px;
    }
    
    
    #posts:hover .details {
    	letter-spacing:1px;
    	position:absolute;
    	padding:10px;
    	display:block;
    	font-size:90%;
    	text-transform:uppercase;
    	text-align:center;
    	width:350px;
        	
    }
    .details a{text-decoration:none;}
    
    .details_t{display:none;margin-top:-15px; margin-left:85px;}
    
    #posts:hover .details_t {
    	padding:3px;
    	letter-spacing:1px;
    	display:block;
    	font-size:90%;
    	text-transform:uppercase;
    	text-align:center;
    	width:325px;
    	margin-bottom:15px;
        
    }
    
    .readmore{
    font-size:20px;
    line-height:25px;
    letter-spacing:-1px;
    text-transform:lowercase;
    text-decoration:none;}
    
    #question{
    	overflow:SHOW;
    	LINE-HEIGHT:130%;
    	MARGIN-top:-3px;
    	padding:3px;
    	padding-top:0px;
    	padding-bottom:0px;
    	border-bottom:1px dotted #E9DAFF;
    }
    
    
    #askr{
    	display:block; 
    	float:left; 
    	width:25px; 
    	overflow:hidden;
    	margin-right:3px;
    }
    
      
    .portrait, .portrait:hover{
    padding:10px;}  
    
    li.dsq-widget-item { 
    	padding-bottom: 1em;
    	margin-bottom: 1em;
           
    }
        
    a.dsq-widget-user {
    	display: block; 
        
    }
    
    
    .conversation ul {
    list-style: none;
    padding: 0 1em 0 0;
    margin-left: 0;
                
    }
        
    conversation ul li{
    list-style: none;
    padding: 0 1em;
                
    }
    
    .conversation ul li .person {
    color: #333;
    font-weight: bold;
    margin-right: 1em;
    
    }
    
    .clear {
    clear: both;
    
    }
    
    hr {border:0px #777 dotted;}
    
    p, ul, ol {
    margin: 1em 0 1em;
    
    }
    
    ul, ol, blockquote {
    padding-left: 0.50em;
    margin-left: 2.5em;
    
    }
    
    blockquote {
    display: block;
    
    }
    
    ul {
    list-style: square;
    
    }
    
    ol {
    list-style: decimal;
    
    }
    
    #tmblr{position: fixed; right: 5px; bottom: 15px; width:79px; height:9px; }
    
    
    
    
                ol.notes {
    		padding-right:20px;
                    list-style-type:none;
                    border-bottom: solid 1px #ccc;
                }
    
                ol.notes li.note {
                    border-top: solid 1px #ccc;
                    padding: 10px;
                }
    
                ol.notes li.note img.avatar {
                    vertical-align: -4px;
                    margin-right: 10px;
                    width: 16px;
                    height: 16px;
                }
    
                ol.notes li.note span.action {
                    font-weight: bold;
                }
    
    .jump_page{
    	   padding-right:10px;
    	   padding-left:10px;
    	   padding-top:3px;
    	   padding-bottom:3px;
    	   margin-left:3px;
    	   margin-right:3px;
    }
    
    a.jump_page:hover {
    	   text-decoration:underline;
    }
    
    .current_page{
    	   font-weight:bold;
    	   padding-right:10px;
    	   padding-left:10px;
    	   padding-top:3px;
    	   padding-bottom:3px;
    	   margin-left:3px;
    	   margin-right:3px;
    }</style>
    <script type="text/javascript" src="http://static.tumblr.com/1cmk6kw/dJalaiedm/tumblr_controls.js"></script>
    
    Code (markup):
     
    Jan Novak, May 4, 2011 IP
  3. bornintheusa

    bornintheusa Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You're a legend, Jan!

    How did you pull that off without spending hours matching up the unicode characters with their corresponding symbols/letters?
     
    bornintheusa, May 4, 2011 IP
  4. Jan Novak

    Jan Novak Peon

    Messages:
    121
    Likes Received:
    5
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Javascript has native support for unicode.

    Just run this code and you will see letter F:
    alert('\u0046')

    And for your document, try to remove document.write and use console.log('\u0046...') and you will see the output in Firebug console.
     
    Jan Novak, May 4, 2011 IP