back

by gregsadetsky·5y ago·view on hn ↗
What @tomxor said! To try it out, go to https://example.com and run the following setup code first:

  c = document.createElement('canvas');
  document.body.appendChild(c);
  x = c.getContext('2d');
  S = Math.sin;
  T = Math.tan;
  C = Math.cos;
  t = 0;
You will then be able to paste the tweet code `eval(unescape(...` into the console and see one frame rendered. :-)
1 comments
You can also go to data:text/html,<body> instead of example.com (if I got the syntax right for the data URI, I’m on mobile)
Just tried, that works too! Thanks
You can do all sorts of next hacks with the data URI syntax :)