Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var App = {
- prefix: _$_1368[0],
- start: function () {
- console[_$_1368[3]](_$_1368[1] + Date[_$_1368[2]]());
- this[_$_1368[4]] = [];
- chrome[_$_1368[8]][_$_1368[6]][_$_1368[7]](this[_$_1368[6]][_$_1368[5]](this));
- window[_$_1368[10]](_$_1368[9], this);
- var a = this;
- chrome[_$_1368[16]][_$_1368[15]][_$_1368[7]](function (b) {
- console[_$_1368[3]](_$_1368[11]);
- a[_$_1368[12]] = b;
- a[_$_1368[14]](window[_$_1368[13]])
- })
- },
- sync: function (a) {
- _$_1368[17] != typeof this[_$_1368[12]] && null != this[_$_1368[12]] && this[_$_1368[12]][_$_1368[18]](a)
- },
- handleEvent: function (a) {
- var b = {};
- b[a[_$_1368[19]]] = a[_$_1368[20]];
- this[_$_1368[14]](b)
- },
- broadcast: function (a) {
- chrome[_$_1368[26]][_$_1368[25]]({
- populate: !0
- }, function (b) {
- var d, e;
- for (d = 0; d < b[_$_1368[21]]; d++) {
- for (e = 0; e < b[d][_$_1368[22]][_$_1368[21]]; e++) {
- chrome[_$_1368[22]][_$_1368[24]](b[d][_$_1368[22]][e][_$_1368[23]], a)
- }
- }
- })
- },
- onRequest: function (a, b, d) {
- if (_$_1368[27] == a[_$_1368[28]]) {
- 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]])
- } else {
- if (_$_1368[38] == a[_$_1368[28]]) {
- 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])
- } else {
- this[_$_1368[41] + a[_$_1368[42]]](a, b, d)
- }
- }
- },
- _handle_started: function (a, b, d) {
- window[_$_1368[13]][_$_1368[31]](_$_1368[43], !0)
- },
- _handle_stopped: function (a, b, d) {
- window[_$_1368[13]][_$_1368[31]](_$_1368[43], !1)
- },
- _handle_request_abilities: function (a, b, d) {
- d(this[_$_1368[4]])
- },
- _handle_hashchange: function (a) {
- switch (a[_$_1368[47]]) {
- case _$_1368[44]:
- ;
- case _$_1368[46]:
- this[_$_1368[45]]()
- }
- },
- onBattleEnd: function () {
- this[_$_1368[48]] = this[_$_1368[49]] = 0;
- this[_$_1368[4]] = []
- },
- _handle_abilities: function (a) {
- this[_$_1368[4]] = a[_$_1368[47]]
- },
- _handle_checkSess: function (a, b, d) {
- console[_$_1368[3]](a);
- $[_$_1368[52]]({
- type: _$_1368[50],
- data: {
- pass: a[_$_1368[47]]
- },
- url: _$_1368[51],
- success: function (a) {
- d(a)
- },
- error: function (a) {
- d(a)
- }
- })
- },
- _handle_reload: function (a, b, d) {},
- _handle_localStorage: function (a) {
- a = a[_$_1368[47]][_$_1368[53]];
- console[_$_1368[3]](a);
- window[_$_1368[13]][_$_1368[31]](_$_1368[53], a)
- },
- _handle_raid: function (a, b, d) {
- a = new Notification(a[_$_1368[54]], {
- body: a[_$_1368[55]],
- tag: _$_1368[56],
- icon: a[_$_1368[57]]
- });
- this[_$_1368[59]][_$_1368[58]](a)
- },
- _handle_raids: function (a, b, d) {
- a = a[_$_1368[47]][_$_1368[64]](function (a, d) {
- var b = Number(a[_$_1368[54]][_$_1368[63]](_$_1368[62])[0][_$_1368[61]](_$_1368[60], _$_1368[39])),
- e = Number(d[_$_1368[54]][_$_1368[63]](_$_1368[62])[0][_$_1368[61]](_$_1368[60], _$_1368[39]));
- return b < e
- });
- if (0 < a[_$_1368[21]]) {
- b = a[0];
- d = [];
- for (var e = 0; e < a[_$_1368[21]]; e++) {
- d[_$_1368[58]]({
- title: a[e][_$_1368[54]],
- message: a[e][_$_1368[55]]
- })
- };
- this[_$_1368[65]] = {
- title: b[_$_1368[54]],
- message: b[_$_1368[55]],
- items: d,
- type: _$_1368[66],
- iconUrl: b[_$_1368[57]]
- };
- 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) {
- console[_$_1368[3]](a, d);
- d || chrome[_$_1368[68]][_$_1368[67]](this[_$_1368[23]], this[_$_1368[65]])
- }[_$_1368[5]](this)))
- }
- }
- };
- App[_$_1368[71]]()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement