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:
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:
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:
- Click Tempermonkey icon at top right corner of your browser then Dashboard
- Inside Tempermonkey dashboard there is Utils tab, click that
- At bottom of that page there is Import from URL entry
- Stay vigilant when installing scripts, check the code…
- Copy-paste following URL there https://gist.githubusercontent.com/DavidKarlas/81b684dc6853f489b233715d157c145b/raw/EnrichOSMWebsite.js
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