v291832943
This commit is contained in:
@@ -2408,6 +2408,7 @@ class AutomaticDispose {
|
||||
$(document).ready(function () {
|
||||
var $div = $("a:contains('Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden!')");
|
||||
var isShow = $div.is(':hidden');
|
||||
var ppppp = undefined;
|
||||
var MissionID = document.location.pathname.substr(document.location.pathname.lastIndexOf("/") + 1);
|
||||
console.log($div, isShow, MissionID);
|
||||
if ($div.length && isShow) {
|
||||
@@ -2416,19 +2417,23 @@ $(document).ready(function () {
|
||||
console.log(mutation.type, MissionID);
|
||||
console.table(mutation, MissionID);
|
||||
if (mutation.attributeName === "style") {
|
||||
setTimeout(function () {
|
||||
if (typeof ppppp != 'undefined'){
|
||||
clearTimeout(ppppp);
|
||||
}
|
||||
ppppp = setTimeout(function () {
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}, 1500);
|
||||
}
|
||||
});
|
||||
});
|
||||
observer.observe($div[0], {
|
||||
attributes: true,
|
||||
characterData: true,
|
||||
attributeOldValue: true,
|
||||
characterDataOldValue: true
|
||||
});
|
||||
|
||||
$div.each(function(index,item){
|
||||
observer.observe(item, {
|
||||
attributes: true,
|
||||
characterData: true,
|
||||
attributeOldValue: true,
|
||||
characterDataOldValue: true
|
||||
});
|
||||
})
|
||||
$div.click();
|
||||
} else {
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
|
||||
Reference in New Issue
Block a user