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

Something I didn’t understand while viewing the github page.

Why is it a goal to bypass OSMF redactions ?

(“Tag redactions” was marked as done and “geometry redactions” was marked as not yet done)

Redactions greatly interfere with the display of edit geometry and hinder understanding of the past. OSMCha and Achavi don’t encounter this problem because they use their own database and Overpass, which don’t synchronize redactions. This means that if you’re viewing the history of a way/relation or changeset, the script may show you the incorrect state of an object. In practice, this rarely prevents us from drawing the right conclusions, but still.

In theory, it’s possible to make a fallback to the Overpass API, but even Overpass isn’t always all-powerful.

For example, if we’re talking about objects hidden in 2012, when the license changed. Yes, the OSM website isn’t allowed to show these objects, but ultimately, we sacrificed the integrity of the database history. I wanted to create a tool that could display changesets for any time.


As a result, all viewers make compromises:

  • Anything based on Overpass will lag on large bboxes and won’t work if Overpass breaks. And it won’t show any changes made before 2012.
  • OSMCha has to have its own database and can quickly display only the latest changesets. If unsuccessful, fallback to Overpass
  • Result Maps has to have its own database and shows edits only for the last month
  • FacilMap and Easy_Changeset_Viewer are close in implementation to the script, but also suffer from redactions and lack of optimization
  • better-osm-org is additionally sensitive to changes on the osm.org

By the way, if you know of any tools that are useful to have links to, please let me know.

For example, I’m currently challenging myself to write a visualizer for the full history of relation geometry. None of the tools I know of can display intermediate versions. Not all can even show a simple history of big relations.

1 Like

1.3.2 a little spontaneous update:

  • The Edit menu now has a link to the new editor OSMPIE

  • I’m tired of watching the voting process on the wiki and counting the votes manually, so now the script is trying to show the intermediate voting results.

12 Likes

…why? It’s nowhere close to being finished at this point (and its UI is still too clunky)

At least there is an interesting render. Well, it’s in this menu for the same reason as Rapid.

I can guess that you are skeptical about this editor, so:

  1. You can disable both Rapid and OSMPIE in the settings (item: Add new editors into Edit menu)
  2. Use E and Shift + E to open iD and JOSM without opening this menu.

I am also aware of disputes in the tagging scheme and have even reported problems with broken route relations. But since the script is not an OSM website that is used by beginners who may not be aware of problems, I think you will check your edits in this editor.

I also have a small personal reason: I am very sad to see how we spent a lot of time on bureaucracy Proposal - OSM.org Editor Inclusion Policy Updated Proposal - OSM.org Editor Inclusion Policy - Draft 2 (200+ messages!)

instead of allowing mappers to add whatever links and editors they want.

These links don’t work anymore for me.

Can you give me an example of an changeset? And check that v1.3.3 is installed

And by the way, do you happen to be using Tampermonkey 5.4.0 + Chrome? It seems that the TM update broke many features, at least for me Ugh, I turned off some features in the settings for the test myself

?_?

What changeset? I was talking about the GitHub links used as sources for the “organized mappers” badges.

outdated

Yes, I understand. They are shown before the username on the /history and /changeset pages/

In my Firefox, they are shown and clickable.

But in Chrome there is not even an icon

Ahh, or are you talking about the link posted on the forum? The list is now here openstreetmap-statistics/config at master · piebro/openstreetmap-statistics · GitHub

I thought of something else, because clicking on :office_building: with alt will open the file with this list from GitHub

1 Like

1.3.7

  • Fixed the ruler and node movement for the new map context menu
  • Automatic addition = when inserting raw tags in iD:

If the script makes a mistake, you can undo the changes with ctrl + z. Or disable it in the script settings. This also works in the osm.org Tags Editor text field.


I also finally split the script into multiple files in the repository. The side effect is that the diff is now very large.


Please note that iD now has a dark theme. It’s similar to the theme from the script, but slightly a little lighter

2 Likes
👻

Don’t worry, this won’t happen by default.

3 Likes

better-osm-org meets OpenSwitchMaps :eyes: It wouldn’t be a bad idea to be honest (not sure if the image is a joke or not -gif of Fry squinting his eyes-)

1.4.0 :link: Custom external links

I added more links to the Edit menu and separated them from the embedded ones on the site:

The default list is subjective, so you can change it

The syntax is inherited from OSM Smart Menu - OpenStreetMap Wiki

And on Android, there is now a button to open this menu in the header. And by default, links to Vespucci, Organic Maps, Osmand:

p.s. of course, you can disable all new links in the script settings


I also compacted the map attribution panel on mobile phones and removed the API usage rules link:


And improved the Wizard (shift + /) for Overpass requests a bit. Now you can write something like name~кириллица. I.e. without the required quotation marks for non-Latin characters.

In general this is an Overpass API issue and you can like the issue Allow to use tag values ​​with letters from non-Latin alphabet without quotes · Issue #751 · drolbr/Overpass-API · GitHub


If osm.org is ill, then you can (play Google Chrome dinosaur) quickly open links to monitoring and issue tracker to find out if a serious crash has occurred


Also on osm.org soon (hopefully soon) there will be a built-in color diff for object history. I tried to make sure that the script does not add its own diff mode when this feature appears on osm.org

9 Likes

When a changeset deals with very long tags, this is what we get. Ideally the long tags would go back to the line after a certain length, or just have a smaller font.

Yes, this is a long-standing, annoying problem and I don’t know how to solve it yet :( Solve word wrapping issue in sidebar tables · Issue #293 · deevroman/better-osm-org · GitHub

But now you can stretch the sidebar width:

œ

2 Likes

I didn’t know about that, this solves it for now!

In any case, congrats for the amazing work you’ve done, this improved my OSM experience completely.

1 Like

1.4.6 small update

  • You can now copy click coordinates in the context menu:

You can switch the coordinate format. There aren’t many of them, but let me know if you’re interested in new ones.

  • for relations, you can now copy the coordinates of the center and bbox like for ways

  • The T key now also switches the time format

10 Likes

1.4.8

  • The changesets list now marks changesets with review_requested=yes

  • You can click on :folded_hands: to filter out such changesets (:baby_bottle: now it’s also clickable)

  • The title now contains a list of changset tags (well, except for some spam ones)

10 Likes