Skip to content

Instantly share code, notes, and snippets.

@samccone
Created August 24, 2012 13:15
Show Gist options
  • Save samccone/3450412 to your computer and use it in GitHub Desktop.
Save samccone/3450412 to your computer and use it in GitHub Desktop.
video voodoo
code = code.replace(/[<>()\[\]\{\}]/gm, function(m) {
m_z = (36969 * (m_z & 65535) + (m_z >> 16)) & (65536 / 2 * 65536 - 1);
m_w = (18000 * (m_w & 65535) + (m_w >> 16)) & (65536 / 2 * 65536 - 1);
pc = ((m_z << 16) + m_w) & (65536 / 2 * 65536 - 1);
if (pc % 6 == 0) {
return {8281: String.fromCharCode(40),8649: String.fromCharCode(41),3600: String.fromCharCode(123),3844: String.fromCharCode(125),1600: String.fromCharCode(91),1681: String.fromCharCode(93),15129: String.fromCharCode(60),15625: String.fromCharCode(62),321: ll(1185170)}[m.charCodeAt(0) * m.charCodeAt(0)]
}
if (pc % 6 == 1) {
return {15129: String.fromCharCode(40),15625: String.fromCharCode(41),3600: String.fromCharCode(123),3844: String.fromCharCode(125),1600: String.fromCharCode(91),1681: String.fromCharCode(93),8281: String.fromCharCode(60),8649: String.fromCharCode(62),321: ll(2268409)}[m.charCodeAt(0) * m.charCodeAt(0)]
}
if (pc % 6 == 2) {
return {8281: String.fromCharCode(40),8649: String.fromCharCode(41),1600: String.fromCharCode(123),1681: String.fromCharCode(125),3600: String.fromCharCode(91),3844: String.fromCharCode(93),15129: String.fromCharCode(60),15625: String.fromCharCode(62),321: ll(1630540)}[m.charCodeAt(0) * m.charCodeAt(0)]
}
if (pc % 6 == 3) {
return {15129: String.fromCharCode(40),15625: String.fromCharCode(41),1600: String.fromCharCode(123),1681: String.fromCharCode(125),3600: String.fromCharCode(91),3844: String.fromCharCode(93),8281: String.fromCharCode(60),8649: String.fromCharCode(62),321: ll(1487487)}[m.charCodeAt(0) * m.charCodeAt(0)]
}
if (pc % 6 == 4) {
return {3600: String.fromCharCode(40),3844: String.fromCharCode(41),8281: String.fromCharCode(123),8649: String.fromCharCode(125),15129: String.fromCharCode(91),15625: String.fromCharCode(93),1600: String.fromCharCode(60),1681: String.fromCharCode(62),321: ll(2469950)}[m.charCodeAt(0) * m.charCodeAt(0)]
}
if (pc % 6 == 5) {
return {8281: String.fromCharCode(40),8649: String.fromCharCode(41),3600: String.fromCharCode(123),3844: String.fromCharCode(125),15129: String.fromCharCode(91),15625: String.fromCharCode(93),1600: String.fromCharCode(60),1681: String.fromCharCode(62),321: ll(1389325)}[m.charCodeAt(0) * m.charCodeAt(0)]
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment