OpenStreetMap

Lately, I've found the OSM History Viewer (Wiki) to be a really useful tool for checking changesets created by other users. But it's quite a hassle opening a new tab to load the service then copy-pasting the changeset ID. So I created a bookmarklet such that whenever I am on a changeset page on the OSM website, I can just apply the bookmarklet and be whisked off to the History Viewer instantly.

Shown below is the bookmarklet URL if you want it too. It's just a quick-and-dirty piece of JavaScript hacked together in a span of 5 minutes. Enjoy!

javascript:a=document.location.href.split('/');if(a[2]+a[3]+a[4]=='www.openstreetmap.orgbrowsechangeset'){document.location.href='http://osm.cdauth.de/history-viewer/changeset.php?id='+a[5]}else{alert('This%20is%20not%20a%20valid%20OSM%20changeset%20page.')}

To install, just create a new bookmark with the whole geeky text above in the URL/URI field. Just ignore the auto-link added by the OSM diary software.

Discussion

Log in to leave a comment