Log current stage to console
This commit is contained in:
parent
650bed8348
commit
d9fa338813
@ -88,10 +88,14 @@ function domCreateButtonMarudor(path) {
|
||||
}
|
||||
|
||||
var connection_result_observer = new MutationObserver((mutations) => {
|
||||
log("change detected")
|
||||
|
||||
mutations.forEach((mutation) => {
|
||||
if (mutation.type === 'childList') {
|
||||
var target = mutation.target;
|
||||
if (target.tagName === 'TD') {
|
||||
log("change is interesting");
|
||||
|
||||
var timetable = target.querySelector("td div.detailContainer table.result tbody");
|
||||
|
||||
/*
|
||||
@ -177,6 +181,8 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
||||
|
||||
});
|
||||
|
||||
log("data collected");
|
||||
|
||||
console.log(data);
|
||||
|
||||
/*
|
||||
@ -213,6 +219,8 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
||||
station.append(marudor_button);
|
||||
});
|
||||
|
||||
log("ui injected");
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -226,4 +234,6 @@ if(typeof target !== 'undefined') {
|
||||
subtree: true,
|
||||
childList: true
|
||||
});
|
||||
|
||||
log("observation started")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user