Martin Kleppe 12 lat temu
rodzic
commit
6b7efa323e
2 zmienionych plików z 44 dodań i 1 usunięć
  1. 24 1
      README.md
  2. 20 0
      index.html

+ 24 - 1
README.md

@@ -33,4 +33,27 @@ The following source will do an `alert(1)`:
 )[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]
 )[+[[+[]]]]+([][[]]+[])[+[[!+[]+!+[]+!+[]+!+[]+!+[]]]]+(![]+[])[+[[!+[]+!+[]]
 ]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+
 ]]+(!![]+[])[+[[+[]]]]+(!![]+[])[+[[!+[]+!+[]+!+[]]]]+(!![]+[])[+[[+!+[]]]]]+
 [])[+[[+!+[]]]+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]])()
 [])[+[[+!+[]]]+[[!+[]+!+[]+!+[]+!+[]+!+[]+!+[]]]])()
-``` 
+``` 
+
+### Basics
+              
+    'false'       =>  ![]
+    'true'        =>  !![]
+    'undefined'   =>  [][[]]
+    'NaN'         =>  +[![]]
+
+    'Array'       =>  []
+    'Number'      =>  +[]
+    'String'      =>  []+[]
+    'Boolean'     =>  ![]
+    'Function'    =>  []["sort"]
+    
+    eval          =>  []["sort"]["constructor"]( CODE )()
+    window        =>  []["sort"]["constructor"]("return this")()
+    
+See the full list [here](https://github.com/aemkei/jsfuck/blob/master/jsfuck.js).
+
+### Links
+
+* Follow [@aemkei](http://twitter.com/aemkei) (Martin Kleppe) <br>
+* Original discussion at Sla.ckers.org](http://sla.ckers.org/forum/read.php?24,32930)

+ 20 - 0
index.html

@@ -61,6 +61,26 @@
     * Follow <a href="http://twitter.com/aemkei">@aemkei</a> (Martin Kleppe) <br>
     * Follow <a href="http://twitter.com/aemkei">@aemkei</a> (Martin Kleppe) <br>
     * Original discussion at <a href="http://sla.ckers.org/forum/read.php?24,32930">Sla.ckers.org</a>
     * Original discussion at <a href="http://sla.ckers.org/forum/read.php?24,32930">Sla.ckers.org</a>
   </p>
   </p>
+  
+  <h3>Basics</h3>
+  
+  <pre>
+* 'false'       =>  ![]
+* 'true'        =>  !![]
+* 'undefined'   =>  [][[]]
+* 'NaN'         =>  +[![]]
+
+* 'Array'       =>  []
+* 'Number'      =>  +[]
+* 'String'      =>  []+[]
+* 'Boolean'     =>  ![]
+* 'Function'    =>  []["sort"]
+ 
+* eval          =>  []["sort"]["constructor"]( CODE )()
+* window        =>  []["sort"]["constructor"]("return this")()
+  </pre>
+
+  <p>See the full list <a href="https://github.com/aemkei/jsfuck/blob/master/jsfuck.js">here.</a></p>
 
 
   <script src="jsfuck.js"></script>
   <script src="jsfuck.js"></script>
   <script>
   <script>