Skip to content

Instantly share code, notes, and snippets.

@KisaragiEffective
Created January 22, 2020 17:03
Show Gist options
  • Save KisaragiEffective/391ae2efa9f0334ea78b4fbe2402b950 to your computer and use it in GitHub Desktop.
Save KisaragiEffective/391ae2efa9f0334ea78b4fbe2402b950 to your computer and use it in GitHub Desktop.
// 3
const $false = ![];
// 4
const $true = !![];
// 6
const $undefined = [][[]]+[];
// 3
const $0 = +[];
// 3+3 -> 6
const $1 = +!+$0;
const $2 = $1+$1;
const $3 = $2+$1;
const $4 = $3+$1;
const $5 = $4+$1;
const $6 = $5+$1;
const $7 = $6+$1;
const $8 = $7+$1;
const $9 = $8+$1;
const a = $false[$0];
const d = $undefined[$2];
const e = $false[$4];
const f = $false[$0];
const i = $undefined[$5];
const n = $undefined[$1];
const s = $false[$3];
const t = $true[$0];
const r = $true[$1];
const u = $true[$2];
const find = f+i+n+d;
const _find = [][find] +[];
const c = _find[$3];
const o = _find[$7];
// (
const la = _find[13];
// )
const ra = _find[14];
// {
const lb = _find[16];
// }
const rb = _find[32];
// [
const lc = _find[18];
// ]
const rc = _find[30];
const v = _find[23];
// ` `
const sp = _find[$8];
const constructor = c+o+n+s+t+r+u+c+t+o+r;
const A = ([][constructor]+[])[$9];
const B = ($false[constructor]+[])[$9]
const S = (""[constructor]+[])[$9];
const y = (""[constructor][constructor]()+"")[13];
const m = (""[constructor][constructor]()+"")[14];
const $Object = [][e+n+t+r+i+e+s]()[constructor];
const b = ($Object[constructor]+"")[10];
const j = ($Object[constructor]+"")[11];
const $Percent = Function(r+e+t+u+r+n+sp+e+s+c+a+p+e)()([][f+i+l+l])[$8];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment