Skip to content

Commit

Permalink
Set language in Driving Directions links for the cache coordinates an…
Browse files Browse the repository at this point in the history
…d the waypoints

> Ich habe mich entschlossen die Sprache einfach zu entfernen, dadurch nutzt google die Systemeinstellung.

Gute Entscheidung.
Danke für die Anpassung.
  • Loading branch information
2Abendsegler authored Mar 7, 2022
2 parents 81e0a10 + d692bd9 commit 2ce8d3c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gc_little_helper_II.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3632,6 +3632,14 @@ var mainGC = function() {
} catch(e) {gclh_error("Change new links for find caches to the old links",e);}
}

// Set language in Driving Directions links for the cache coordinates and the waypoints.
if (is_page("cache_listing")) {
$('#ctl00_ContentBody_lnkPrintDirectionsSimple')[0].href = $('#ctl00_ContentBody_lnkPrintDirectionsSimple')[0].href.replace('http://', 'https://');
$('a[href*="https://maps.google.com/maps?f=d&hl=en&saddr="]').each((_i, elem) => {
elem.href = elem.href.replace('&hl=en', '');
});
}

// Hide greenToTopButton.
if (settings_hide_top_button) $("#topScroll").attr("id", "_topScroll").hide();

Expand Down

0 comments on commit 2ce8d3c

Please sign in to comment.