What is Nostr?
jarek /
npub1wyf…na9l
2024-11-19 00:47:30

jarek on Nostr: Do you use OpenStreetMap.org? Do you have dark mode on and don't like the newly ...

Do you use OpenStreetMap.org? Do you have dark mode on and don't like the newly greyed out tiles?

Here's a quick and hacky `userContent.css` definition to undo the greying:

```
/* openstreetmap.org */
@media (prefers-color-scheme: dark) {
#content #map .leaflet-pane .leaflet-tile-container .leaflet-tile, #content #map .mapkey-table-entry td:first-child > * {
filter: brightness(1.0) !important;
}
}
```

(The `#content #map` selectors I added to mimic openstreetmap dot org’s DOM structure. It might still catch some other websites, but would make no difference unless they use CSS filters too.)

Quick howto on userContent.css in Firefox here: https://davidwalsh.name/firefox-user-stylesheet

#OpenStreetMap
Author Public Key
npub1wyf02n29z8xdgjn6ym2dqyvgdvx9l2ea44h8aqsfc20khcdvwvksznna9l