1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
clerie 68301c44d4 Add Firefox install url 2020-09-19 22:26:01 +02:00
clerie 6e3e3eb8e8 Prevent multiple injections 2020-09-19 22:12:02 +02:00
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,8 @@ Extends the booking portal of bahn.de with linking to useful information.
## Installation
### Aus Firefox Add-ons (Empfohlen)
Einfach zu Firefox hinzufügen:
TBD
https://addons.mozilla.org/firefox/addon/bahn-insight/
### Als Entwicklerversion
1. Herunterladen

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
*/