This userscript adds a link to OpenStreetMap whenever a Wikidata item is referenced there using the wikidata
tag. The link appears in the sidebar to the left under the "Tools" section.
Install it by adding the following line to your common.js
file:
importScript('User:Abbe98/osm.js');