xzfc / agar-expose

Yet another ogar client
12 stars 12 forks source link

Non-mangled code? #40

Open ghost opened 7 years ago

ghost commented 7 years ago

Is there any of the non-mangled code so I can understand some stuff? Just by looking at the inner core of qa I can see it sets cookies, but wc is fUcKeD uP.

// wc
  function wc() {
    if (.4 > r) {
      ia = null;
    } else {
      for (var a = Number.POSITIVE_INFINITY, b = Number.POSITIVE_INFINITY, d = Number.NEGATIVE_INFINITY, c = Number.NEGATIVE_INFINITY, g = 0;g < z.length;g++) {
        var e = z[g];
        !e.P() || e.V || 20 >= e.size * r || (a = Math.min(e.x - e.size, a), b = Math.min(e.y - e.size, b), d = Math.max(e.x + e.size, d), c = Math.max(e.y + e.size, c));
      }
      ia = xc.init({Ba:a - 10, Ca:b - 10, za:d + 10, Aa:c + 10, Ja:2, Ka:4});
      for (g = 0;g < z.length;g++) {
        if (e = z[g], e.P() && !(20 >= e.size * r)) {
          for (a = 0;a < e.a.length;++a) {
            b = e.a[a].x, d = e.a[a].y, b < A - q / 2 / r || d < B - u / 2 / r || b > A + q / 2 / r || d > B + u / 2 / r || ia.va(e.a[a]);
          }
        }
      }
    }
  }
// qa
  function qa(a, b) {
    if (b) {
      var d = new Date;
      d.setTime(d.getTime() + 864E5 * b);
      d = ";expires=" + d.toGMTString();
    } else {
      d = "";
    }
    document.cookie = "v72_redirect=" + a + d + ";path=/";
  }
SAV-404 commented 6 years ago

u can just say "fucked up", this is v72, it's unreadable, i actually have a big problem with this too :"(