This commit is contained in:
2018-12-17 00:23:53 +01:00
parent 66d44850cf
commit 00efc5ff9c
3 changed files with 154 additions and 114 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Sat Dec 15 2018 14:52:55 GMT+0100 (CET)*/ /*Generated on:Mon Dec 17 2018 00:23:53 GMT+0100 (CET)*/
var AutomaticDispose_Branch = "master"; var AutomaticDispose_Branch = "master";
var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/"; var AutomaticDispose_URL = "https://jf.git.rest/Jomaar/automatic-dispose/raw/branch/";
var da_lss_adis_time = new Date().getTime(); var da_lss_adis_time = new Date().getTime();
+21 -1
View File
@@ -1,4 +1,4 @@
/*Generated on:Sat Dec 15 2018 14:52:55 GMT+0100 (CET)*/ /*Generated on:Mon Dec 17 2018 00:23:53 GMT+0100 (CET)*/
/* /*
* Dexie.js - a minimalistic wrapper for IndexedDB * Dexie.js - a minimalistic wrapper for IndexedDB
* =============================================== * ===============================================
@@ -18970,7 +18970,18 @@ class AutomaticDispose {
StartAlarmProcess() { StartAlarmProcess() {
const self = this; const self = this;
setTimeout(function () { setTimeout(function () {
var $div = $("a.btn-warning.missing_vehicles_load");
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);
Promise.resolve().then(async () => { 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(); return await self.PrepareVehicleNeedList();
}).then(async () => { }).then(async () => {
return await self.CollectInvolvedVehicles(); return await self.CollectInvolvedVehicles();
@@ -19029,7 +19040,16 @@ class AutomaticDispose {
}, 250); }, 250);
}) })
}
});
});
observer.observe($div[0], {
attributes: true
});
$div.click();
}, 500); }, 500);
} }
// - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
+20
View File
@@ -1310,7 +1310,18 @@ class AutomaticDispose {
StartAlarmProcess() { StartAlarmProcess() {
const self = this; const self = this;
setTimeout(function () { setTimeout(function () {
var $div = $("a.btn-warning.missing_vehicles_load");
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);
Promise.resolve().then(async () => { 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(); return await self.PrepareVehicleNeedList();
}).then(async () => { }).then(async () => {
return await self.CollectInvolvedVehicles(); return await self.CollectInvolvedVehicles();
@@ -1369,7 +1380,16 @@ class AutomaticDispose {
}, 250); }, 250);
}) })
}
});
});
observer.observe($div[0], {
attributes: true
});
$div.click();
}, 500); }, 500);
} }
// - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- // - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --