Skip to content

Commit

Permalink
Merge pull request #6 from ouraios/dev
Browse files Browse the repository at this point in the history
Release 0.9.7
  • Loading branch information
ouraios authored Oct 27, 2018
2 parents f971550 + 2bac1d4 commit 12932fb
Show file tree
Hide file tree
Showing 77 changed files with 12,458 additions and 4,916 deletions.
15 changes: 0 additions & 15 deletions CHANGELOG.md

This file was deleted.

25 changes: 0 additions & 25 deletions gulpfile.js

This file was deleted.

18 changes: 10 additions & 8 deletions js/agb_basic.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
if (!AGB) var AGB = {};
if (!AGB){
var AGB = {};
}
AGB.Time = {
timestamp: function() {
return Math.floor(Date.now() / 1e3);
},
timestampMinute: function() {
return Math.floor((Date.now() - 1381e9) / 6e4);
return Math.floor((Date.now() - 1381000000000) / 60000);
},
timestampMinuteConvert: function(a) {
return 1e3 < a ? 60 * (+a || 0) + 1381e6 : 0;
return 1000 < a ? 60 * (+a || 0) + 1381000000 : 0;
}
};
var VAL = {
choose: function(a) {
return 0 < a ? arguments[a] : "";
choose: function(value) {
return 0 < value ? arguments[value] : "";
},
check: function(a) {
for (var b = 1; b < arguments.length; b++)
if (a === arguments[b]) return !0;
return !1;
if (a === arguments[b]) return true;
return false;
},
status: function(a, b, c, d) {
return 0 > a ? b : 0 < a ? d : c;
Expand Down Expand Up @@ -134,7 +136,7 @@ var VAL = {
compare: function(a, b) {
return "string" === typeof a && "string" === typeof a
? a.length === b.length && a === b
: !1;
: false;
},
getAttribute: function(a, b) {
return "string" === typeof a
Expand Down
14 changes: 7 additions & 7 deletions js/agb_chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ AGB.Manager = {
" DataBase: " +
AGB.DataBase.status +
(a || ""),
!0
true
);
});
},
Expand Down Expand Up @@ -102,7 +102,7 @@ chrome.runtime.onMessage.addListener(function(a, c, b) {
AGB[a.page].Messages(a.role, a.para, b, c),
b)
)
return !0;
return true;
});
AGB.Storage = {
status: 0,
Expand Down Expand Up @@ -148,21 +148,21 @@ AGB.Storage = {
OBJ.is(a) &&
a.key &&
((c = a.sync ? "sync" : "local"),
AGB.Core.Log("Delete - storage - " + a.key, !0),
AGB.Core.Log("Delete - storage - " + a.key, true),
chrome.storage[c].remove(a.key));
},
List: function(a) {
OBJ.is(a) &&
(chrome.storage.local.get(null, function(c) {
OBJ.iterate(c, function(b) {
(a.filter && 0 !== STR.check(b).indexOf(a.filter)) ||
AGB.Core.Log("List - storage - " + b, !0);
AGB.Core.Log("List - storage - " + b, true);
});
}),
chrome.storage.sync.get(null, function(c) {
OBJ.iterate(c, function(b) {
(a.filter && 0 !== STR.check(b).indexOf(a.filter)) ||
AGB.Core.Log("List - sync - " + b, !0);
AGB.Core.Log("List - sync - " + b, true);
});
}));
},
Expand All @@ -171,14 +171,14 @@ AGB.Storage = {
(chrome.storage.local.get(null, function(c) {
OBJ.iterate(c, function(b) {
(a.filter && 0 !== STR.check(b).indexOf(a.filter)) ||
(AGB.Core.Log("Delete - storage - " + b, !0),
(AGB.Core.Log("Delete - storage - " + b, true),
chrome.storage.local.remove(b));
});
}),
chrome.storage.sync.get(null, function(c) {
OBJ.iterate(c, function(b) {
(a.filter && 0 !== STR.check(b).indexOf(a.filter)) ||
(AGB.Core.Log("Delete - sync - " + b, !0),
(AGB.Core.Log("Delete - sync - " + b, true),
chrome.storage.sync.remove(b));
});
}));
Expand Down
Loading

0 comments on commit 12932fb

Please sign in to comment.