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

Ouh, thats an interesting one!

I have to get used to this, I keep clicking “Centre map here” instead of “Query features” now :laughing:

As always, thanks for your work!

2 Likes

Interesting note. Maybe I should add a separator.

2 Likes

Added in 1.0.3. Also fixed a bug where the script was breaking satellite images in OSMCha

1 Like

on a side note there is no turn restriction needed in this example

3 Likes

На какие домены идёт скрипт для визуализации изменений?

v1.0.7: url for force update

Added :slight_smile:

  • Button to delete relation. (to make it easier to fix broken type=restriction :ㅤ) Don’t worry, multipolygons and relations with wikidata cannot be deleted.

  • Automatically downloads the entire history of the object instead of pagination

openstreetmap.org/api :ㅤ) Отношения по кнопке через оверпас

1 Like

After the changes on osm.org, the OpenStreetMap Tags Editor also broke. upd: fixed in 1.4

In 1.0.8 I also added a workaround that restores its functionality

3 Likes

1.1.2: hotfix again, this time to fix object diffs

Please note that osm.org can now also show the number of comments next to changeset links

2 Likes

I have a feature improvement request: colorblind-friendly diff highlighting!

I can’t tell the difference between red and green when they’re not next to each other - for example, these are indistinguishable:
upload

GitHub’s colors, pictured below, for reference:
Type / Line number column / Text column / Inline highlights
Additions / #243E5D / #13233A / #214D88
Removals / #4B2D1C / #2C1E1A / #723E20


As always, this userscript continues to be a very useful tool. Thank you for your work on it!

On that matter, i found ColorBrewer: Color Advice for Maps this that lets pick and compare some colour schemes. On this site https://storytellingmitdaten.com/die-richtige-verwendung-von-farben-in-datenvisualisierungen/#farbenblind (german) there is a whole section about colour blindness that i found interesting to read.

Maybe its helpfluf, but I’m sure there are plenty of resources online available :smiley:

I’m unlikely to want to change the current colors (for example, I was very upset by the change of palette on https://resultmaps.neis-one.org/osm-notes), but I’ll think about choosing a palette. The most difficult part is to make an interface for choosing a color and saving settings (:


But, there is a way to change the colors now: Stylus :: add0n.com

Example:

tr.quick-look-deleted-tag th:not(.tag-flag) {
    background: white !important;
    color: black;
}

tr.quick-look-deleted-tag td:not(.tag-flag) {
    background: white !important;
    color: black;
}

Unfortunately, the colors of objects on the map will be more difficult. I don’t use classes there. But maybe I’ll add them if someone is interested in working on the palette.

please tell me that my post didn’t affect today’s /osm-notes palette change. Please :pleading_face:

2 Likes

If you use the delete node button, the tag editor for the OSM layer, or the OpenStreetMap Tags Editor extension, you may have started to see a popup with an invalid authorization.

This is a consequence of OSM OAuth authorizations are failing across multiple services due to popup windows

In this case, just open the iD editor.


I use the same authorization method as in OpenStreetMap Tags Editor, using the osm-auth library. If you opened iD, the library reuses the token from iD. Otherwise, it tries to authorize you and now it doesn’t work.


OAuth, dependencies. I love it </sarcasm> On replacing Basic Auth with OAuth 2.0 - #18 by TrickyFoxy

3 Likes

So, Google Chrome started disabling extensions that didn’t upgrade to Manifest v3, including ViolentMonkey.

A temporary workaround that will still work for a while:

https://reddit.com/r/chrome/comments/1lx26ur/for_those_who_want_to_enable_legacy_extensions

Medium term I think we are saying goodbye to ViolentMonkey for Chrome and only the proprietary TamperMonkey is left. I also saw ScriptCat mentioned GitHub - scriptscat/scriptcat: ScriptCat, a browser extension that can execute userscript; 脚本猫,一个可以执行用户脚本的浏览器扩展 but for now I know that in its current state better-osm-org will not work with it.

But you can always switch to Firefox :wink:

Also note that for new changesets, osm.org displays statistics in the OSMCha style

As well as a button to preview information from Wikipedia

3 Likes

Good news: vector tiles are now available on osm.org

Bad news: the script breaks them. I’m working on a fix, for now you can turn off the script

fixed in 1.1.6

p.s. just in case, before reporting problems with tiles to maintainers, disable the script

3 Likes

On the other side there’s also a few things that are broken on the site even without the script.

1 Like

Also some features:

  • Clicking on coordinates now copies them

  • The coordinate format can be selected by clicking on the button next to

  • Wikipedia previews now automatically expand

  • shift + M to write a message to the user

  • Pressing the 1 key on the user changesets page scrolls to the oldest changesets

10 Likes

Hi,
some users dislike the new Notes-animation.

Would it be possible to add a switch to the BetterOSM script to deactivate it?

2 Likes