Better-osm-org: a script that adds useful little things to osm.org

You may have already seen my announcements in my diary (1, 2, 3), but just in case, I’ll show you what this script can do:

Tags diff in object history

QuickLook for simple changesets

Improved history tab

Hotkeys

show
  • < > for user changesets
  • N — on/off notes layer
  • D — on/off Map Data layer
  • G — on/off GPS tracks layer
  • S — on/off satellite layer (Firefox only)
  • H — open object history
  • 1 — open first version of object
  • Z — zoom to changeset/object bbox
  • E — Open editor
  • 8/9 — prev/next map position
  • O— open OSMCha
  • shift + O — open Achavi
  • shift + L — go to your position

:new: Turning off map diming and night mode for the map

p.s. It is disabled by default, to enable it, click on the extension icon→Settings→Select option→Save

And much more, full list on GitHub


Links

Repository with installation instructions
Also available on GreasyFork

It is better to report problems in Issues on GitHub. You can ask any questions here.

25 Likes

Big appreciation from my side I’m using your script some weeks now and don’t want to miss it! Thank you

Wow, looks like some really useful features. I have to see how this changes my workflow.

I have one question about settings. How to enable/disable the dark mode of the map? Using Firefox on Linux with Violentmonkey, I do not find the settings. Probably I am just too dumb or blind. Would someone please point me to the script settings, please. Thanks a lot.

Never mind I found them. The script was working without the need to enable it manually, but the settings were disabled.

This is strange… By default, the script should not change the dark theme in any way.

Just in case, I’ll add screenshots of where to find the settings:

2024-11-15 в 20.48.49

2024-11-15 в 20.50.38

2 Likes

Thanks for making this - I’ve been using it for about a month, and I’m really grateful! I find the changeset diff features very useful.

Apparently, it did. E.g. all the extra buttons and highlighted changes in CSs and object history tabs were present but the settings were missing. Though, I cannot reproduce it anymore.

Anyway, it is working now and I use it a lot. Many thanks,

This is an incredible script. It also shows that OSM website could be much, much better.

Thank you for this awesome job, @TrickyFoxy!

upd: Workability restored in 0.5.7 (only new icons in changesets don’t work). Please update.

:warning: Consider this all a beta version, because this update is an emergency one, but in general, you can already use it. Go:

  • Shift+click for revert via JOSM. And clickable IDs in comments:

  • New hotkeys:
    • shift + L — go to your location
    • shift + N — create new note (if some object was opened, his link wound prefilled in note text)

p. s. Good night :slight_smile:

For update: https://raw.githubusercontent.com/deevroman/better-osm-org/master/better-osm-org.user.js


Outdated:

Two news:

  • On OSM.org there are more POI icons now :tada:
  • This update broke QuickLook for changesets, so I’ll try to update the script ASAP.
9 Likes

The dark theme has an unpleasant bug that when you open iD you can see a white screen. Unfortunately, I don’t know how to fix this using just a script. Ideally, this should be fixed by the osm.org developers Dark Mode bugs/improvements for the UI · Issue #5329 · openstreetmap/openstreetmap-website · GitHub

And one more thing. I am a fan of extensions and besides my script I use several more:

List
2 Likes

Found this today and so far i like the changes you are able to do with your script. Thanks a lot! :slight_smile:
EDIT: But, there is no licence, or did i miss the file?

WTFPL. A userscript is usually one file, so the license is indicated directly in it better-osm-org/better-osm-org.user.js at 35884c2848731e0ba0ded3c528f8295b2eaa52af · deevroman/better-osm-org · GitHub

2 Likes

Good news Map color mode preference by AntonKhorev · Pull Request #5362 · openstreetmap/openstreetmap-website · GitHub

p.s. If you used color inversion using a script, then update to version 0.5.8

p.p.s By the way, clicking on the avatar now opens your changesets!

8 Likes

Hi, thanks for the script.

Two issues:

  • HDYC integration on profile is NOT working on my laptop (FF, Win11).
    Error message: “Please disable tracking protection so that the HDYC account login works”

  • Resize-handle for the seach-box only was working for some time, now disappeared

@chris66 Did you follow the error message and disable all tracking protections?
e.g. Firefox Enhanced Tracking Protection, uBlock, AdBlock Plus, DuckDuckGo Privacy Essentials, CSP Blocker, or similar.

2 Likes

No, of course not… :wink:

Just in case: you only need to disable Firefox Enhanced Tracking Protection. Surprisingly, on osm.org there are analytics scripts (matomo.js), which blocks uBlock

In general, it is used for sidebar when you open the history of an object or changeset. The fact that it works for search-box is a side effect :slight_smile:

Ideally, I need to do it like in iD, so that the corner is not displayed, but you can drag the sidebar edge

Where is fixme highlighted ?

grafik

For example: Node: 6506618057 | OpenStreetMap

1 Like