v2 up a90fag09u

This commit is contained in:
2018-12-17 00:39:40 +01:00
parent c4a7390c72
commit d2c54b866f
3 changed files with 130 additions and 132 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 00:35:59 GMT+0100 (CET)*/
/*Generated on:Mon Dec 17 2018 00:39:40 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime();
+15 -16
View File
@@ -1,4 +1,4 @@
/*Generated on:Mon Dec 17 2018 00:35:59 GMT+0100 (CET)*/
/*Generated on:Mon Dec 17 2018 00:39:40 GMT+0100 (CET)*/
/*
* Dexie.js - a minimalistic wrapper for IndexedDB
* ===============================================
@@ -18969,21 +18969,9 @@ class AutomaticDispose {
StartAlarmProcess() {
const self = this;
setTimeout(function () {
var $div = $("#mission-form > div:nth-child(7) > a");
console.log($div.length, $div);
if ($div.length) {
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.attributeName === "class") {
var attributeValue = $(mutation.target).prop(mutation.attributeName);
console.log("Class attribute changed to:", attributeValue);
const alarming = function alarming(){
Promise.resolve().then(async () => {
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs btn-warning missing_vehicles_load btn-block">Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden! </a>
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs missing_vehicles_load btn-block" style="display: none;">Lade...</a>
// - #mission-form > div:nth-child(7) > a
return await self.PrepareVehicleNeedList();
}).then(async () => {
return await self.PrepareVehicleNeedList();
}).then(async () => {
return await self.CollectInvolvedVehicles();
@@ -19043,6 +19031,17 @@ class AutomaticDispose {
})
}
setTimeout(function () {
var $div = $("#mission-form > div:nth-child(7) > a");
console.log($div.length, $div);
if ($div.length) {
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.attributeName === "class") {
var attributeValue = $(mutation.target).prop(mutation.attributeName);
console.log("Class attribute changed to:", attributeValue);
alarming()
}
});
});
observer.observe($div[0], {
@@ -19051,7 +19050,7 @@ class AutomaticDispose {
$div.click();
} else {
self.UpdateMissionsToDone(self.MissionID)
alarming()
}
}, 500);
+14 -15
View File
@@ -1309,21 +1309,9 @@ class AutomaticDispose {
StartAlarmProcess() {
const self = this;
setTimeout(function () {
var $div = $("#mission-form > div:nth-child(7) > a");
console.log($div.length, $div);
if ($div.length) {
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.attributeName === "class") {
var attributeValue = $(mutation.target).prop(mutation.attributeName);
console.log("Class attribute changed to:", attributeValue);
const alarming = function alarming(){
Promise.resolve().then(async () => {
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs btn-warning missing_vehicles_load btn-block">Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden! </a>
//<a href="/missions/923466412/missing_vehicles" class="btn btn-xs missing_vehicles_load btn-block" style="display: none;">Lade...</a>
// - #mission-form > div:nth-child(7) > a
return await self.PrepareVehicleNeedList();
}).then(async () => {
return await self.PrepareVehicleNeedList();
}).then(async () => {
return await self.CollectInvolvedVehicles();
@@ -1383,6 +1371,17 @@ class AutomaticDispose {
})
}
setTimeout(function () {
var $div = $("#mission-form > div:nth-child(7) > a");
console.log($div.length, $div);
if ($div.length) {
var observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.attributeName === "class") {
var attributeValue = $(mutation.target).prop(mutation.attributeName);
console.log("Class attribute changed to:", attributeValue);
alarming()
}
});
});
observer.observe($div[0], {
@@ -1391,7 +1390,7 @@ class AutomaticDispose {
$div.click();
} else {
self.UpdateMissionsToDone(self.MissionID)
alarming()
}
}, 500);