jsfuck | Write any JavaScript with 6 Characters : ! + | Runtime Evironment library
kandi X-RAY | jsfuck Summary
kandi X-RAY | jsfuck Summary
JSFuck is an esoteric and educational programming style based on the atomic parts of JavaScript. It uses only six different characters to write and execute code. It does not depend on a browser, so you can even run it on Node.js. By @aemkei and friends.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Encode the input as a string
- Replaces all mappings in the string
- Replaces all numbers in the formatter .
- Find all missing values found in glob pattern
- {{{ 1 Initialize number
- replace numbers with numbers
- Escape a sequence of sequences .
- Replaces a pattern with the given value .
- Replacement for mapping
- replace placeholder replacements
jsfuck Key Features
jsfuck Examples and Code Snippets
Community Discussions
Trending Discussions on jsfuck
QUESTION
Currently jsfuck use following code to get "C" character
...ANSWER
Answered 2020-Aug-31 at 17:06The entire approach depends on escape("<")
, which yields "%3C"
. We can easily substitute that with escape(",")
, which gives us "%2C"
. JSFuck already has a way to obtain ","
: [[]]["concat"]([[]])+[]
QUESTION
I want to convert following code (ignore console.log) to jsfuck convention where only characters []()!+
are allowed (but here for clarity also numbers and strings with a-Z and 0-9 chars are allowed (wrapped by double quotes) - because conversion such strings/numbers to []()!+
is easy)
ANSWER
Answered 2020-Aug-27 at 14:36The function constructor takes more than one argument:
QUESTION
This is continuation of this question with more difficult case. Suppose I want to call string function with 2 parameters e.g.
...ANSWER
Answered 2020-Aug-26 at 20:04Yes, it is possible.
So we start with the expression that omits the comma, and only consists of string literals and the JSF characters:
QUESTION
This is continuation of this question but for ARRAYS. Suppose I want to call array function with 2 parameters e.g.
...ANSWER
Answered 2020-Aug-28 at 15:08The existing technique to wrap the subject of the method inside an array, which is mentioned here, was intended specifically for strings, turning "string" into ["string"]. The trick was using .split()
without arguments. After applying that trick, it was not so difficult to use the other little tricks to apply the method that was desired, and allow chaining on the result.
Of course, now that the subject is an array, we cannot use .split()
.
It turns out that you can use the following method to make it happen for arrays:
QUESTION
Suppose I have some string and I want to use function "replace" (ignore console.log and white chars in your head)
...ANSWER
Answered 2020-Aug-26 at 18:39Question 2 has a simple solution: prefer the new RegExp
constructor; e.g. /e/g
becomes new RegExp('e', 'g');
The following would resolve question 1 if it didn't rely on the ...
operator:
We can replace:
QUESTION
I want to replace some characters in string e.g.
...ANSWER
Answered 2020-Aug-27 at 11:40I don't see a way to get access to the RegExp
constructor without evaluating code, like with the Function
constructor:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jsfuck
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page