v2 mao
This commit is contained in:
@@ -2397,4 +2397,28 @@ class AutomaticDispose {
|
||||
}
|
||||
|
||||
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
$(document).ready(function () {
|
||||
var $div = $("a:contains('Fahrzeuganzeige begrenzt! Fehlende Fahrzeuge laden!')");
|
||||
var isShow = $div.is(':hidden');
|
||||
//console.log($div, isShow);
|
||||
if ($div.length && isShow && 1 == 0) {
|
||||
var observer = new MutationObserver(function (mutations) {
|
||||
mutations.forEach(function (mutation) {
|
||||
if (mutation.attributeName === "style") {
|
||||
setTimeout(function () {
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}, 1500);
|
||||
}
|
||||
});
|
||||
});
|
||||
observer.observe($div[0], {
|
||||
attributes: true
|
||||
});
|
||||
|
||||
$div.click();
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
window.AutomaticDisposeCall = new AutomaticDispose();
|
||||
}, 500);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user