Bookmarklet

From OpenStreetMap Wiki
Jump to: navigation, search
Available languages — Bookmarklet
Afrikaans Alemannisch aragonés asturianu azərbaycanca Bahasa Indonesia Bahasa Melayu Bân-lâm-gú Basa Jawa Baso Minangkabau bosanski brezhoneg català čeština dansk Deutsch eesti English español Esperanto estremeñu euskara français Frysk Gaeilge Gàidhlig galego Hausa hrvatski Igbo interlingua Interlingue isiXhosa isiZulu íslenska italiano Kiswahili Kreyòl ayisyen kréyòl gwadloupéyen kurdî latviešu Lëtzebuergesch lietuvių magyar Malagasy Malti Nederlands Nedersaksies norsk norsk nynorsk occitan Oromoo oʻzbekcha/ўзбекча Plattdüütsch polski português português do Brasil română shqip slovenčina slovenščina Soomaaliga suomi svenska Tiếng Việt Türkçe Vahcuengh vèneto Wolof Yorùbá Zazaki српски / srpski беларуская български қазақша македонски монгол русский тоҷикӣ українська Ελληνικά Հայերեն ქართული नेपाली मराठी हिन्दी অসমীয়া বাংলা ਪੰਜਾਬੀ ગુજરાતી ଓଡ଼ିଆ தமிழ் తెలుగు ಕನ್ನಡ മലയാളം සිංහල ไทย မြန်မာဘာသာ ລາວ ភាសាខ្មែរ ⵜⴰⵎⴰⵣⵉⵖⵜ አማርኛ 한국어 日本語 中文(简体)‎ 吴语 粵語 中文(繁體)‎ ייִדיש עברית اردو العربية پښتو سنڌي فارسی ދިވެހިބަސް

Bookmarklet are small pieces of JavaScript code which you store and run on-demand in your browser to conveniently access tools for your OSM work! For general info see Wikipedia about “bookmarklet”.

Which tools can be accessed via bookmarklets?

Bookmarklets can be easily written for all web-based tools which accept parameters via HTTP GET.

A simple list of all wiki pages linking to here – these pages may link to here because someone has made and published a bookmarklet for the described tool.

How-to set up

  • use a browser which supports bookmarklets on pages with a strict CSP (openstreetmap.org has one since May 2018). Firefox does not work; Chromium works. See German forum discussion for details.
  • create a bookmark in your browser, and use the bookmarklet JavaScript code as URL. This could be achieved by bookmarking some arbitrary page and then editing the bookmark (maybe via the bookmark manager in your browser): Copy and paste the code into the URL field.
  • (the following method is not possible in this wiki) If you use the bookmark toolbar and if the bookmarklet is available as link then you can juse drag it do the toolbar.

How-to use

Usually by

  • clicking on the bookmark button in the bookmark toolbar,
  • selecting the bookmark from the list of bookmarks,
  • or opening the bookmark via a keyword/shortcut

while visiting another page on osm.org.

How-to code

A tip: