Comment structure
This commit is contained in:
parent
357fff97f2
commit
4efc000794
@ -70,8 +70,10 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
|||||||
if (target.tagName === 'TD') {
|
if (target.tagName === 'TD') {
|
||||||
var timetable = target.querySelector("td div.detailContainer table.result tbody");
|
var timetable = target.querySelector("td div.detailContainer table.result tbody");
|
||||||
|
|
||||||
|
/*
|
||||||
|
* COLLECT DATA
|
||||||
|
*/
|
||||||
var data = [];
|
var data = [];
|
||||||
|
|
||||||
var relations = timetable.querySelectorAll("tr.first");
|
var relations = timetable.querySelectorAll("tr.first");
|
||||||
relations.forEach((relation, i) => {
|
relations.forEach((relation, i) => {
|
||||||
var relationend = relation.nextElementSibling;
|
var relationend = relation.nextElementSibling;
|
||||||
@ -141,6 +143,10 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
|||||||
|
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* INJECT CUSTOM UI
|
||||||
|
*/
|
||||||
|
|
||||||
var trains = timetable.querySelectorAll("tr.first td.products");
|
var trains = timetable.querySelectorAll("tr.first td.products");
|
||||||
trains.forEach((train) => {
|
trains.forEach((train) => {
|
||||||
var train_names = train.querySelectorAll("span a");
|
var train_names = train.querySelectorAll("span a");
|
||||||
|
Loading…
Reference in New Issue
Block a user