Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. var App = {
  2. prefix: _$_1368[0],
  3. start: function () {
  4. console[_$_1368[3]](_$_1368[1] + Date[_$_1368[2]]());
  5. this[_$_1368[4]] = [];
  6. chrome[_$_1368[8]][_$_1368[6]][_$_1368[7]](this[_$_1368[6]][_$_1368[5]](this));
  7. window[_$_1368[10]](_$_1368[9], this);
  8. var a = this;
  9. chrome[_$_1368[16]][_$_1368[15]][_$_1368[7]](function (b) {
  10. console[_$_1368[3]](_$_1368[11]);
  11. a[_$_1368[12]] = b;
  12. a[_$_1368[14]](window[_$_1368[13]])
  13. })
  14. },
  15. sync: function (a) {
  16. _$_1368[17] != typeof this[_$_1368[12]] && null != this[_$_1368[12]] && this[_$_1368[12]][_$_1368[18]](a)
  17. },
  18. handleEvent: function (a) {
  19. var b = {};
  20. b[a[_$_1368[19]]] = a[_$_1368[20]];
  21. this[_$_1368[14]](b)
  22. },
  23. broadcast: function (a) {
  24. chrome[_$_1368[26]][_$_1368[25]]({
  25. populate: !0
  26. }, function (b) {
  27. var d, e;
  28. for (d = 0; d < b[_$_1368[21]]; d++) {
  29. for (e = 0; e < b[d][_$_1368[22]][_$_1368[21]]; e++) {
  30. chrome[_$_1368[22]][_$_1368[24]](b[d][_$_1368[22]][e][_$_1368[23]], a)
  31. }
  32. }
  33. })
  34. },
  35. onRequest: function (a, b, d) {
  36. if (_$_1368[27] == a[_$_1368[28]]) {
  37. console[_$_1368[3]](a), window[_$_1368[13]][_$_1368[31]](_$_1368[29], a[_$_1368[30]]), window[_$_1368[13]][_$_1368[31]](_$_1368[32], a[_$_1368[33]]), window[_$_1368[13]][_$_1368[31]](_$_1368[34], a[_$_1368[35]]), d(_$_1368[36] + a[_$_1368[30]] + _$_1368[37] + a[_$_1368[33]] + _$_1368[37] + a[_$_1368[35]])
  38. } else {
  39. if (_$_1368[38] == a[_$_1368[28]]) {
  40. console[_$_1368[3]](a), window[_$_1368[13]][_$_1368[31]](_$_1368[29], _$_1368[39]), window[_$_1368[13]][_$_1368[31]](_$_1368[32], _$_1368[39]), window[_$_1368[13]][_$_1368[31]](_$_1368[34], _$_1368[39]), d(_$_1368[40])
  41. } else {
  42. this[_$_1368[41] + a[_$_1368[42]]](a, b, d)
  43. }
  44. }
  45. },
  46. _handle_started: function (a, b, d) {
  47. window[_$_1368[13]][_$_1368[31]](_$_1368[43], !0)
  48. },
  49. _handle_stopped: function (a, b, d) {
  50. window[_$_1368[13]][_$_1368[31]](_$_1368[43], !1)
  51. },
  52. _handle_request_abilities: function (a, b, d) {
  53. d(this[_$_1368[4]])
  54. },
  55. _handle_hashchange: function (a) {
  56. switch (a[_$_1368[47]]) {
  57. case _$_1368[44]:
  58. ;
  59. case _$_1368[46]:
  60. this[_$_1368[45]]()
  61. }
  62. },
  63. onBattleEnd: function () {
  64. this[_$_1368[48]] = this[_$_1368[49]] = 0;
  65. this[_$_1368[4]] = []
  66. },
  67. _handle_abilities: function (a) {
  68. this[_$_1368[4]] = a[_$_1368[47]]
  69. },
  70. _handle_checkSess: function (a, b, d) {
  71. console[_$_1368[3]](a);
  72. $[_$_1368[52]]({
  73. type: _$_1368[50],
  74. data: {
  75. pass: a[_$_1368[47]]
  76. },
  77. url: _$_1368[51],
  78. success: function (a) {
  79. d(a)
  80. },
  81. error: function (a) {
  82. d(a)
  83. }
  84. })
  85. },
  86. _handle_reload: function (a, b, d) {},
  87. _handle_localStorage: function (a) {
  88. a = a[_$_1368[47]][_$_1368[53]];
  89. console[_$_1368[3]](a);
  90. window[_$_1368[13]][_$_1368[31]](_$_1368[53], a)
  91. },
  92. _handle_raid: function (a, b, d) {
  93. a = new Notification(a[_$_1368[54]], {
  94. body: a[_$_1368[55]],
  95. tag: _$_1368[56],
  96. icon: a[_$_1368[57]]
  97. });
  98. this[_$_1368[59]][_$_1368[58]](a)
  99. },
  100. _handle_raids: function (a, b, d) {
  101. a = a[_$_1368[47]][_$_1368[64]](function (a, d) {
  102. var b = Number(a[_$_1368[54]][_$_1368[63]](_$_1368[62])[0][_$_1368[61]](_$_1368[60], _$_1368[39])),
  103. e = Number(d[_$_1368[54]][_$_1368[63]](_$_1368[62])[0][_$_1368[61]](_$_1368[60], _$_1368[39]));
  104. return b < e
  105. });
  106. if (0 < a[_$_1368[21]]) {
  107. b = a[0];
  108. d = [];
  109. for (var e = 0; e < a[_$_1368[21]]; e++) {
  110. d[_$_1368[58]]({
  111. title: a[e][_$_1368[54]],
  112. message: a[e][_$_1368[55]]
  113. })
  114. };
  115. this[_$_1368[65]] = {
  116. title: b[_$_1368[54]],
  117. message: b[_$_1368[55]],
  118. items: d,
  119. type: _$_1368[66],
  120. iconUrl: b[_$_1368[57]]
  121. };
  122. this[_$_1368[23]] ? chrome[_$_1368[68]][_$_1368[67]](id, this[_$_1368[65]]) : (this[_$_1368[23]] = chrome[_$_1368[68]][_$_1368[69]](this[_$_1368[65]], function () {}), chrome[_$_1368[68]][_$_1368[70]][_$_1368[7]](function (a, d) {
  123. console[_$_1368[3]](a, d);
  124. d || chrome[_$_1368[68]][_$_1368[67]](this[_$_1368[23]], this[_$_1368[65]])
  125. }[_$_1368[5]](this)))
  126. }
  127. }
  128. };
  129. App[_$_1368[71]]()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement