1
0

Prevent multiple injections

This commit is contained in:
clerie 2020-09-19 22:12:02 +02:00
parent b5b6431662
commit 6e3e3eb8e8

View File

@ -129,6 +129,12 @@ var connection_result_observer = new MutationObserver((mutations) => {
var timetable = target.querySelector("td div.detailContainer table.result tbody");
// Just break if there are elements injected by us
if(timetable.querySelectorAll(".bahn-insight").length != 0) {
log("links already injected")
return;
}
/*
* COLLECT DATA
*/