Enriching OpenStreetMap.org website with Tempermonkey

Posted by DavidKarlas on 11/9/2023

Tampermonkey is web browser extension that allows adding JavaScript to any website in your browser and manipulate content of that website. It sounds scary and probably should, first you need to trust extension itself and then scripts that you install. Since extension itself has huge community and history, millions of installs across Chrome/Edge/Firefox extensions stores, 5 stars… Let’s assume we can trust it…

I wrote some time ago script that I want to share with everyone, it adds few buttons to OpenStreetMap.org website. Here is example how it looks like: Image showing new buttons added to OpenStreetMap.org website

On example of New York above buttons would take you to following websites:

  • PeWu nice and simple history view of changes on nodes, ways or relations
  • DeepHistory another history viewer, but in tabular view
  • Relation Analyzer helpful website for validating/analyzing relations
  • Overpass Opens Overpass at same viewport as currently seen on OSM website

It also adds different set of buttons linking to Achavi, OSMHV, OSMCha and OSM Lab websites when viewing changeset on website: Shows enriched OSM website

To install this extension in your browser go to https://www.tampermonkey.net/ and follow instructions…

Once you have it installed… You will want to install script that I wrote to do that:

Now go to OpenStreetMap.org or some changeset/node/way or relation and new buttons should show up.

You can give suggestions or report bugs either here or at https://gist.github.com/DavidKarlas/81b684dc6853f489b233715d157c145b

Happy mapping,

David