Add dbf.finalrewind.org to linked pages
This commit is contained in:
parent
48056a0380
commit
76febca006
@ -92,6 +92,18 @@ function domCreateButton(href, image_src) {
|
||||
*/
|
||||
function domCreateButtonMarudor(path) {
|
||||
var button = domCreateButton("https://marudor.de" + path, getMediaURL("marudor.svg"));
|
||||
button.setAttribute("title", "marudor.de");
|
||||
return button;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an 'image buttom' to specifically link to dbf.finalrewind.org
|
||||
*
|
||||
* @param path URL path part after https://dbf.finalrewind.org
|
||||
*/
|
||||
function domCreateButtonDbf(path) {
|
||||
var button = domCreateButton("https://dbf.finalrewind.org" + path, getMediaURL("dbf.png"));
|
||||
button.setAttribute("title", "dbf.finalrewind.org");
|
||||
return button;
|
||||
}
|
||||
|
||||
@ -239,12 +251,18 @@ var connection_result_observer = new MutationObserver((mutations) => {
|
||||
var marudor_button = domCreateButtonMarudor("/" + data[i]["from"]["station"]);
|
||||
bahn_insight_field.appendChild(marudor_button);
|
||||
|
||||
var dbf_button = domCreateButtonDbf("/" + data[i]["from"]["station"]);
|
||||
bahn_insight_field.appendChild(dbf_button);
|
||||
|
||||
var to = relationend.querySelector("td.station");
|
||||
var bahn_insight_field = domCreateBahnInsightField();
|
||||
to.appendChild(bahn_insight_field);
|
||||
|
||||
var marudor_button = domCreateButtonMarudor("/" + data[i]["to"]["station"]);
|
||||
bahn_insight_field.appendChild(marudor_button);
|
||||
|
||||
var dbf_button = domCreateButtonDbf("/" + data[i]["to"]["station"]);
|
||||
bahn_insight_field.appendChild(dbf_button);
|
||||
});
|
||||
|
||||
log("ui injected");
|
||||
|
BIN
media/dbf.png
Normal file
BIN
media/dbf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 652 B |
Loading…
Reference in New Issue
Block a user