Revision as of 14:48, 31 October 2014

This new page is currently undergoing modifications. The information presented should be considered a draft, not yet ready for use. This content is open to changes from anyone during construction. If you would like to make changes or have questions, please post a message in this forum.

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

Left click on the Chrome menu on the browser toolbar.

Hoover 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+⇧ Shift+O or ⌘ Cmd+⌥ 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.

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.

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.