Write Any JavaScript With 6 Characters and jQuery - JQFuck
File Size: | 22.6 KB |
---|---|
Views Total: | 654 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
This is a jQuery version of the 'JSFuck' library that helps you beautify & encode any JavaScript codes using only six different characters: []()!+.
jQuery has long been known as the plugin of choice for routine JS operations. Recent developments have led to the creation of rich content libraries enabling variable manipulation via jQuery, thus allowing for the development and deployment of sophisticated, DRY web applications. JQFuck represents a postmodern shift from DRY to RY. As a futuristic and educational programming style, it is based on the atomic parts of JavaScript and is implemented only with jQuery calls and six non-alphanumeric characters.
Basics
- false => ![]
- true => !![]
- undefined => [][[]]
- NaN => +[![]]
- 0 => +[]
- 1 => +!+[]
- 2 => !+[]+!+[]
- 10 => [+!+[]]+[+[]]
- Array => []
- Number => +[]
- String => []+[]
- Boolean => ![]
- Function => []["filter"]
- eval => []["filter"]["constructor"]( CODE )()
- window => []["filter"]["constructor"]("return this")()
This awesome jQuery plugin is developed by naveenarun. For more Advanced Usages, please check the demo page or visit the official website.