A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands to extend the browser's functionality through a single mouse click. For instance, a bookmarklet might enable the user to select an editor username on a page, click the bookmarklet, and be taken directly to the private message page with the username already entered.
Adding to a browser
Chrome
To add a bookmarklet to Google Chrome, you must open the Bookmark Manager. There are three methods to do this:
METHOD 1: Via Chrome's Menu option
- Hover over the "Bookmarks" menu and a drop-down menu will display
- Left click on "Bookmark Manager"
METHOD 2: Bookmark menu
- If you have the Bookmark Bar enabled, right-click anywhere on the Bookmark Bar
- Scroll down to Bookmark Manager and left-click
METHOD 3: Shortcut key
- Just use the shortcut Ctrl+Template:Unicode Shift+O or Template:Unicode Cmd+Template:Unicode Option+B
After Opening the Bookmark menu:
- In the left window pane, navigate to where you want to add the bookmarklet.
- In the main window pane, right click to see the context menu.
- Left click on "Add page"
- In the "Name" box, enter any name you prefer to assist in identifying the bookmarklet. You could also leave it empty.
- In the "URL" box, paste the code your previously copied.
When finished, it should look something like this:
Shortcut keys can be added with external add-on tools. One example is this tool.
Firefox
- Ensure the Bookmarks toolbar is visible with a Right-click in a blank area of the Firefox tab row or menu bar area. Alternately you can open the Bookmarks window with Ctrl-B.
- Right-click the bookmark bar or window and select New Bookmark.
- Enter a name for the bookmarklet in the Name field.
- The Location field is where you copy and paste the javascript code from one of the code boxes below. Be sure to include everything from the code box.
- The other fields are not required. Press Add to save the changes.
- Repeat the process for each bookmarklet desired.
Defined scripts
The following bookmarklet scripts could be helpful to map editors. Following the instructions above for adding a bookmarklet based on your browser, select the code below with your mouse, highlighting all the code inside the box. Use that code to paste into the bookmark as the target or location.
Formatted (viewable) code can be seen on the talk page.
Map location
Open Waze Map Editor from LiveMap
A script is no longer necessary. Click click the "Edit the map" link when viewing Livemap.
Open LiveMap from Waze Map Editor
This script opens a window with Live Map when currently viewing Waze Map Editor.
A drag-n-drop link can be copied from this dropbox page (AlanOfTheBerg's dropbox).
Map editing
Custom location scripts
If you know of a script for a specific area, please add it to this list or request help from this forum for it to be added.
Reselect Segments from Permalink
This simply gets the list of segments IDs from the URL, and selects them again in WME.
Set segment locks in area
This script will set the lock rank on various segment types in the visible area of the WME. Current configuration listed:
- It will only update up to 150 segments
- It only modifies what can be modified by the user's current rank and area
- If the user's current rank is lower than the defined lock level, it will lock the roads at the user's rank
- It will not lower a rank less than it is currently set
- Freeways and Ramps are set to 4
- Major Highways are set to 3
- Minor Highways are set to 2
- Primary Streets are set to 2
- Railroads are set to 2
- Ferries are set to 5
Extraneous node remover
This script will remove extraneous junction nodes that are not required. It will not remove nodes that prevent the problems related to loops with too few segments. This function is similar to the feature built into the Toolbox, but it operates as a stand alone script from other tools.
Geometry Node Wiper (GeoWipe)
Completely straightens all selected segments by removing all geometry nodes. DO NOT USE this on segments which are supposed to curve or have doglegs on them for navigational aids. Template:Pre2
User information and communication
Create private message to user
This script will use the mouse-selected (highlighted) text on the page to prepare a private message page with the username already populated. If you don't highlight a username, the script will ask for one to be entered.
Display user's forum posts
This script will use the mouse-selected (highlighted) text on the page to display the user's forum posts. If you don't highlight a username, the script will ask for one to be entered.
Once on that page, selecting any entry of the user's name will move to the user's forum profile data.
Display user's Wiki page
This script will use the mouse-selected (highlighted) text on the page to display the user's Wiki page. If you don't highlight a username, the script will ask for one to be entered.
Display user's Wiki contributions
This script will use the mouse-selected (highlighted) text on the page to display the user's Wiki contributions. If you don't highlight a username, the script will ask for one to be entered.
Get user's Editor profile
This script will use the mouse-selected (highlighted) text on the page to display the user's Editor profile on the forum. If you don't highlight a username, the script will ask for one to be entered. This script opens a new browser tab.
Get user's forum profile
This script will use the mouse-selected (highlighted) text on the page to display the user's forum profile on the forum. If you don't highlight a username, the script will ask for one to be entered.
Wiki and support pages
Glossary Entries
This script will take you directly to the Waze Glossary entry for a highlighted or entered term. Template:Pre2
Purge Current Wiki Page
This Bookmarklet will purge the cached version of the current wiki page, causing it reload any included images, or transcluded templates. Template:Pre2
Device
Geocaching
Geocaching-Waze bookmarklet is a iOS Safari bookmarklet that allows driving to a given Geocaching coordinate with Waze. It assumes a fixed flow within iOS and the official Geocaching client, but it could be adapted to other situations.
Open the iOS Geocaching app, pick up a cache, click on Open on external map, which will open Google Maps on the browser. From this page, click on the bookmarklet which will display the lat+lon; then open Waze on that point, ready to drive there.
Set up:
- open safari and open any webpage
- add the page as a bookmark, call it something ("Waze"?). At this point one can't change the location.
- open the bookmarks list, edit the bookmark, and change the location to the following text:
Then once this is set up, here's how to use it:
- on the Geocaching client, pick the cache you want to drive to, and click on the "open on external map", which will open Safari and maps.google.com
- click on safari bookmarks and the waze bookmark
- an alert will show the "lat,lon", just in case, to ensure the value was parsed correctly (waze crashes if this value is incorrect btw)
- Waze will open with a marker at the cache's coordinate. click on the marker and drive there. Or manually pick a road nearby in case it's a cache with no access by car ;)
Feedback is welcomed.
Comments or questions on this bookmarklet can be brought up in the Geocaching-Waze bookmarklet forum thread |